From: greened@obbligato.org Date: Wed, 16 Jan 2013 03:20:04 GMT Subject: Re: [PATCH 3/7] contrib/subtree: Add --unannotate Message-ID: <87vcaxq0ez.fsf@waller.obbligato.org> In-Reply-To: <7vehhvecoy.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > "David A. Greene" writes: > >> diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt >> index c5bce41..75aa690 100644 >> --- a/contrib/subtree/git-subtree.txt >> +++ b/contrib/subtree/git-subtree.txt >> @@ -198,6 +198,21 @@ OPTIONS FOR split >> git subtree tries to make it work anyway, particularly >> if you use --rejoin, but it may not always be effective. >> >> +--unannotate=:: >> + This option is only valid for the split command. >> + >> + When generating synthetic history, try to remove the prefix >> + from each commit message (using bash's "strip >> + shortest match from beginning" command, which supports >> + globbing). This makes sense if you format library commits >> + like "library: Change something or other" when you're working >> + in your project's repository, but you want to remove this >> + prefix when pushing back to the library's upstream repository. >> + (In this case --unannotate='*: ' would work well.) >> + >> + Like --annotate, you need to use the same >> + whenever you split, or you may run into problems. > > I think this paragraph inherits existing breakage from the beginning > of time, but I do not think the above will format the second and > subsequent paragraphs correctly. Ok, I'll take a look. > I've applied all seven patches in the series with minor fix-ups, and > will merge it to 'pu'. Thanks! -David