Hi Duy,

On Fri, 20 Jan 2017, Nguyễn Thái Ngọc Duy wrote:

> OK This patch is horrible.

Yeah ;-)

> Though the idea is cool and I've found it very useful. So here it is.
> Perhaps the idea may be revised a bit that's more suitable for more than
> one user.

Why not introduce a flag to "git log" that shows a keyboard-friendly name
similar to what `git name-rev` would have said, except that the name would
be generated using the name(s) specified on the command-line?

Example:

        git log 8923d2d0 upstream/pu

        commit 8923d2d00192ceb1107078484cccf537cb51c1b5 (8923d2d0)
        ...
        commit 9f500d6cf5eaa49391d6deca85fc864e5bd23415 (8923d2d0^)
        ...
        commit f79c24a291a58845b08cfec7573e22cc153693e1 (8923d2d0~2)
        ...
        commit c921c5bb63baaa16dc760de9549da55c8c89dc9c (upstream/pu)
        ...
        commit 16793ba6b6333ba0cdee1adb53d979c3fbdb17bc (upstream/pu^)
        ...

Granted, this is still a little more cumbersome to type than @h1, but
then, you can skip those round-robin games as well as the possibly
backwards-incompatible extension of the rev syntax.

Ciao,
Johannes

Reply via email to