-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Include git notes in commit buffers #1406
base: master
Are you sure you want to change the base?
Conversation
I updated the commit message. Is it acceptable now? |
The commit message failure is because I require the body to be wrapped to 72 characters, not 80. My hesitation, though, is that I've bent over backwards to keep this to a single But I also don't want to encourage you to spend more time on this because I plan to scrap the current implementation entirely and replace it with something closer to the new |
Do you happen to know what an old git would do with the |
Issue tpope#912 Add any existing git notes into commit views, between the commit message and the patch itself. This is similar to what "git show" does, albeit without any indent. This should work for older versions of git, without the notes feature, provided that the '%N' directive is passed through as-is.
The patch is now updated. As is the commit message. I imagine you know a better way to do the text editing; my vim-script experience is fairly limited. This works though. There's no I tested that |
You can use |
OK, that's been in Git about 5 years longer than I thought it might! We shouldn't need to check; the patterns should work anyway. I tested it with |
I bring it up as a possible simplification because I haven't deciphered what |
I needed a way to remove You may well know a better way. |
Issue #912
Calling "git notes list" serves both to suppress the "Notes:" prefix when a
commit does not have any notes, and to avoid using notes formats in older
versions of git.