Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document git's ignore-revs-file feature #1419

Merged
merged 4 commits into from
May 16, 2020

Conversation

ichard26
Copy link
Collaborator

Resolves #1408.

Commit message

A long-standing counterargument against moving to automated code formatters
like Black is that the migration will clutter up the output of git blame.
This used to be a valid argument, but not anymore. Since git version 2.23,
git natively supports ignoring revisions in blame with the --ignore-rev
and --ignore-revs-file options.

This isn't documented in the Black documentation. It should be as it would
put old projects wanting to migrate to Black at ease since blame won't
be ruined.


I personally don't like where the section is currently located. The Installation and usage has enough information already, but I frankly don't know where it should go. Suggestions are more than welcomed!

A long-standing counterargument against moving to automated code formatters
like Black is that the migration will clutter up the output of git blame.
This used to be a valid argument, but not anymore. Since git version 2.23,
git natively supports ignoring revisions in blame with the --ignore-rev
and --ignore-revs-file options.

This isn't documented in the Black documentation. It should be as it would
put old projects wanting to migrate to Black at ease since blame won't
be ruined.
Copy link
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Good to advertise.

Small NIT and question about a public issue for .git-blame-ignore-revs support on GitHub.

README.md Outdated
Comment on lines 191 to 193
**The one caveat is that GitHub and GitLab do not yet support ignoring revisions using
in their native UI of blame.** So blame information will be cluttered with a reformating
commit on those platforms.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a public issue or request anywhere we can link to for people to +1?

If not, maybe we should kick it off someway or at least via my own paid personal account.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found an issue for GitLab.. still looking for GitHub
https://gitlab.com/gitlab-org/gitlab/-/issues/31423

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@ichard26 ichard26 May 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that the only ways to submit feature requests regarding github.com is either via https://support.github.com/contact/feedback which isn't public, or on the GitHub Community Forum.

Quoted from this answer for a question about submitting feature questions regarding GitHub Community Forum:

That said, I do want to share that we are working on a new tool and process for submitting these sorts of things for the Community Forum (and for github.com). This is still in the investigative stage, and I don't have a timeline to share, but we are planning on improving this process.

We also recognize the desire for feature requests to be visible to other users, commented on, and even voted on. These are all things that we are taking into consideration when looking at implementing a new process.

Copy link
Collaborator Author

@ichard26 ichard26 May 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cooperlees, do you think those two links work? If they do, I'll add them in the docs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sounds good - Lets just add the link for GitLab + say if you'd like this feature please let GitHub know!

Re being confusing ... no ... I just copy pasted - I should have used --ignore-revs-file to refer to the feature.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/isaacs/github is an unofficial place to post GitHub requests to +1. Wanna make one there?

Copy link
Collaborator Author

@ichard26 ichard26 May 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I like the idea of posting an issue there, for personal reasons, I don't want to post the issue myself... It's not something I'd want to lead, by being the issue author. I hope I am not being ridiculous.

Edit: I didn't mention having one of you author the feature request since that seems too much to ask for. If you'd like to, go for it, but I personally won't and there's no pressure to do so for me.
Edit two: Thanks for the suggestion though :)

README.md Outdated Show resolved Hide resolved
ichard26 and others added 2 commits May 16, 2020 14:21
Make my documentation less wordy.

Co-authored-by: Cooper Lees <me@cooperlees.com>
@ichard26

This comment has been minimized.

'Counterargument' was the wrong word since it means an objection to an objection. 'Argument' is the proper word I was looking for.
@cooperlees cooperlees merged commit 12e857f into psf:master May 16, 2020
@ichard26 ichard26 deleted the ignore_rev_docnote branch May 16, 2020 20:26
@hugovk hugovk mentioned this pull request May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: git's ignore-revs-file feature
3 participants