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

Re: [PATCH 13/13] contrib/subtree: Remove --annotate

From
James Nylen <jnylen@gmail.com>
Date
Feb 18, 2013, 19:46 UTC
Message-ID
<CABVa4NhyJ0FtYoFf9ZMnVt1eR9ezoCnd0oM5xGg1fgk0RwBUKg@mail.gmail.com>
In-Reply-To
<87sj4t4gar.fsf@waller.obbligato.org>
On Mon, Feb 18, 2013 at 1:39 PM,  <greened@obbligato.org> wrote:
Show 5 quoted lines
> James Nylen <jnylen@gmail.com> writes:
>>  - add "fancylib" as a subtree of "myprog"
>>  - commit to "myprog" repo: "fancylib: don't crash as much"
>>  - split these commits back out to "fancylib" main repo, and remove
>> the "fancylib: " prefix
> Should this really be a function of git-subtree?  It seems like it would
> fit better in a history-rewriting command.  Wouldn't rebase -i or even
> filter-branch be a better way to do this?

I'm not a git guru by any stretch, so I'm sure there are other ways to accommodate the example use case above. I really just want to be able to split and merge repositories while keeping meaningful commit messages with an appropriate level of detail. Can you suggest an alternative workflow?

> If there's no --annotate I don't see why git-subtree should have the
> --unannotate functionality.

Because they are not inverse operations - they both apply to `git subtree split`. I think that `--annotate` would only be useful as an option to `git subtree merge`. In that case it would be the inverse operation of `git subtree split --unannotate`, and then I would agree that if you remove one, you can/should remove the other.

> Again, I agree that your example is relevant, maybe even common, but I
> don't necessarily think git-subtree should be in the business of
> rewriting commit messages at all.

I'm willing to accept that. Junio seemed to be leaning that way too in earlier emails.

> I'd appreciate more thoughts from you on this.  I want to make sure we
> can support your use case.

I currently need to enable `git subtree` manually anyway, since it's not part of the main distribution. So it's not a burden for me to support this feature with a customized script, or learn a new way to do it.

Thanks for your consideration of this small and nit-picky issue.
Previous: greened@obbligato.orgNext: Junio C Hamano
Message 26 of 28 in “Assorted contrib/subtree Patches”
  1. David A. GreeneFeb 5, 2013
  2. 01/13 contrib/subtree: Remove Test Number CommentsDavid A. Greene, Feb 5, 2013
  3. Junio C HamanoFeb 5, 2013
  4. 02/13 contrib/subtree: Use %B for Split Subject/BodyDavid A. Greene, Feb 5, 2013
  5. 03/13 contrib/subtree: Better Error Handling for addDavid A. Greene, Feb 5, 2013
  6. 04/13 contrib/subtree: Fix SynopsisDavid A. Greene, Feb 5, 2013
  7. 05/13 contrib/subtree: Honor DESTDIRDavid A. Greene, Feb 5, 2013
  8. 06/13 contrib/subtree: Make the Manual Directory if NeededDavid A. Greene, Feb 5, 2013
  9. 07/13 contrib/subtree: Fix whitespacesDavid A. Greene, Feb 5, 2013
  10. Junio C HamanoFeb 5, 2013
  11. 08/13 contrib/subtree: Add vim modelineDavid A. Greene, Feb 5, 2013
  12. Junio C HamanoFeb 5, 2013
  13. 09/13 contrib/subtree: Ignore testing directoryDavid A. Greene, Feb 5, 2013
  14. Junio C HamanoFeb 5, 2013
  15. 10/13 contrib/subtree: Code cleaning and refactoringDavid A. Greene, Feb 5, 2013
  16. Junio C HamanoFeb 5, 2013
  17. 11/13 contrib/subtree: Make each test self-containedDavid A. Greene, Feb 5, 2013
  18. Junio C HamanoFeb 5, 2013
  19. 12/13 contrib/subtree: Handle '--prefix' argument with a slash appendedDavid A. Greene, Feb 5, 2013
  20. Junio C HamanoFeb 5, 2013
  21. 13/13 contrib/subtree: Remove --annotateDavid A. Greene, Feb 5, 2013
  22. Junio C HamanoFeb 5, 2013
  23. Jakub SuderFeb 5, 2013
  24. James NylenFeb 5, 2013
  25. greened@obbligato.orgFeb 18, 2013
  26. James NylenFeb 18, 2013
  27. Junio C HamanoFeb 5, 2013
  28. greened@obbligato.orgFeb 18, 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.