bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#38044: 27.0.50; There should be an easier way to look at a specific


From: Dmitry Gutov
Subject: bug#38044: 27.0.50; There should be an easier way to look at a specific vc commit
Date: Sun, 17 Nov 2019 13:53:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 13.11.2019 23:03, Juri Linkov wrote:

Actually "log-show" is a bad name.  It's too git-specific OT1H,
and OTOH it's too general since its output varies that doesn't fit
to log-view-mode.

Git's log output is flexible, isn't it? It can be changed using a template.

I hoped git would be able to search both sha and commit message
in one command, something like:

   git log -1 5761a1a393 --grep=5761a1a393

to output the log of sha 5761a1a393, and logs of matching commit messages,
but this is not possible in git.

It's feasible: just call Git twice and concat the results.

But I don't think it's a good idea to mix the results of two different searches. I think there should be two of them. But there could be an extra -dwim- command that makes the choice based on the word under point (and whether it's hexinumeric).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]