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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




11.03.2020, 02:16, "Christos Pappas" <chrispappas99@xxxxxxxxx>:
> 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux