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

Re: [Feature request] Give non-unique names to commits for grouping

From
KTKonstantin Tokarev <annulen@yandex.ru>
Date
Mar 10, 2020, 23:21 UTC
Message-ID
<6552181583882319@iva1-398527a32f9a.qloud-c.yandex.net>
In-Reply-To
<CAGa6KtSgGOLVjHdubwRW=Bvnjnp2PoP7jJ5_NxNWGFLrVYT9SA@mail.gmail.com>
11.03.2020, 02:16, "Christos Pappas" <chrispappas99@gmail.com>:
Show 13 quoted lines
> Dear Git users,
>
> I suggest that we should have the option to mark each commit with a
> category name, that is not necessarily unique (like 'tags') so we
> could have commit groups.
> For example we could:
> git mark {commit_id} {name}
>
> Then we could give special functionality to some commands based on
> those "marks".
> For example if we had marked a few commits with the name 'fix_typo'
> git log --mark fix_typo. Show all the commits marked with 'fix_typo'
> git blame --mark fix_typo Run git blame but ignore commits with 'fix_typo'

Why not use git log --grep? It can give better results if someone accidentally forgets to use mark properly, but mentions keyword in the topic.

That said, it would be great if there was an easy way to use git log --grep with commit topics only (i.e., search only in the first line)

-- 
Regards,
Konstantin
Previous: Christos PappasNext: Martin Fick
Message 2 of 7 in “[Feature request] Give non-unique names to commits for grouping”
  1. Christos PappasMar 10, 2020
  2. Konstantin TokarevMar 10, 2020
  3. Martin FickMar 11, 2020
  4. Christos PappasMar 11, 2020
  5. Martin FickMar 11, 2020
  6. Christos PappasMar 11, 2020
  7. Junio C HamanoMar 11, 2020

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.