git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/8] Add --unannotate

From
James Nylen <jnylen@gmail.com>
Date
Jan 17, 2013, 21:07 UTC
Message-ID
<CABVa4NhK3FR-NsTq6Vt6yrgneQmMxF5ANmN6pF8k3fHeOLd0JA@mail.gmail.com>
In-Reply-To
<87sj6kfsbz.fsf@waller.obbligato.org>
On Tue, Jan 1, 2013 at 5:31 PM,  <greened@obbligato.org> wrote:
Show 17 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> "David A. Greene" <greened@obbligato.org> writes:
>>
>>> From: James Nylen <jnylen@gmail.com>
>>>
>>> Teach git-subtree about --unannotate.  This option strips a prefix
>>> from a commit message when doing a subtree split.
>>
>> Hrm.  This looks like a workaround for a short-sighted misdesign of
>> the annotate option that only allowed prefixing a fixed string.  I
>> have to wonder if it is better to deprecate --annotate and replace
>> it with a more general "commit log rewriting" facility that can
>> cover both use cases?
>
> That's not a bad idea.  I'd have to think a bit about a sensible design.
> Do you have any ideas, James?

I just now saw these emails. I'm having a hard time thinking of any good use case other than:

 - add "fancylib" as a subtree of "myprog"
 - commit to myprog repo: "fancylib: don't crash as much"
 - split these commits back out to fancylib's main repo, and remove
the "fancylib: " prefix

You could potentially have something like "Don't crash as much (fancylib)" but that's awkward. What might you want to do with a pattern-based rewrite that doesn't involve removing a prefix when splitting commits?

In fact, I don't see the use of the original --annotate option at all, since it causes more detailed commit messages in the smaller of the two repositories.

Previous: greened@obbligato.orgNext: greened@obbligato.org
Message 19 of 38 in “git-subtree Patches to Apply”
  1. David A. GreeneJan 1, 2013
  2. 1/8 Use %B for Split Subject/BodyDavid A. Greene, Jan 1, 2013
  3. greened@obbligato.orgJan 1, 2013
  4. Junio C HamanoJan 1, 2013
  5. greened@obbligato.orgJan 1, 2013
  6. Junio C HamanoJan 1, 2013
  7. greened@obbligato.orgJan 1, 2013
  8. 郑文辉 (Techlive Zheng)Jan 7, 2013
  9. Junio C HamanoJan 7, 2013
  10. Junio C HamanoJan 1, 2013
  11. greened@obbligato.orgJan 1, 2013
  12. Junio C HamanoJan 2, 2013
  13. greened@obbligato.orgJan 8, 2013
  14. 2/8 Add --unannotateDavid A. Greene, Jan 1, 2013
  15. Junio C HamanoJan 1, 2013
  16. greened@obbligato.orgJan 1, 2013
  17. Junio C HamanoJan 2, 2013
  18. greened@obbligato.orgJan 8, 2013
  19. James NylenJan 17, 2013
  20. greened@obbligato.orgJan 22, 2013
  21. Junio C HamanoJan 22, 2013
  22. 3/8 Better Error Handling for addDavid A. Greene, Jan 1, 2013
  23. Junio C HamanoJan 1, 2013
  24. greened@obbligato.orgJan 1, 2013
  25. Junio C HamanoJan 2, 2013
  26. 4/8 Fix SynopsisDavid A. Greene, Jan 1, 2013
  27. Junio C HamanoJan 1, 2013
  28. greened@obbligato.orgJan 1, 2013
  29. 5/8 Honor DESTDIRDavid A. Greene, Jan 1, 2013
  30. Junio C HamanoJan 1, 2013
  31. greened@obbligato.orgJan 1, 2013
  32. 6/8 Make the Manual Directory if NeededDavid A. Greene, Jan 1, 2013
  33. Junio C HamanoJan 1, 2013
  34. greened@obbligato.orgJan 1, 2013
  35. 7/8 Ignore git-subtreeDavid A. Greene, Jan 1, 2013
  36. Junio C HamanoJan 1, 2013
  37. 8/8 Fix Documentation TypoDavid A. Greene, Jan 1, 2013
  38. 郑文辉 (Techlive Zheng)Jan 7, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.