[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8756: 23.3; vc-git.el doesn't use --follow argument in vc-git-print-
From: |
Eli Zaretskii |
Subject: |
bug#8756: 23.3; vc-git.el doesn't use --follow argument in vc-git-print-log |
Date: |
Sun, 12 Jan 2014 05:57:21 +0200 |
> From: Dan Nicolaescu <dann@gnu.org>
> Date: Sat, 11 Jan 2014 20:46:45 -0500
> Cc: 8756@debbugs.gnu.org
>
> IMO the ideal solution is to get git to put the sha1/path info in the
> log output, then vc can read it from there and do whatever is needed.
> Is it possible to do that using the "format" argument to git log?
Yes, use %H or %h.
> Another thing that could be improved in the log output (C-x v L) is to
> put the date before the name.
>
> >From a random place in emacs history:
>
> * 2822e57..: Paul Eggert 2013-01-14 Avoid needless casts with XSAVE_POINTER.
> * 5dece9d..: Leo Liu 2013-01-14 Sync window-point and point in calendar-redraw
> * 9b1cf40..: Glenn Morris 2013-01-14 Auto-commit of loaddefs files.
> * df32ded..: Dmitry Antipov 2013-01-14 * lisp.h (toplevel): Fix typo in
> comment.
>
> The date has a fixed length, names do not, the display would look much better
> like this:
>
> * 2822e57..: 2013-01-14 Paul Eggert Avoid needless casts with XSAVE_POINTER.
> * 5dece9d..: 2013-01-14 Leo Liu Sync window-point and point in
> calendar-redraw
> * 9b1cf40..: 2013-01-14 Glenn Morris Auto-commit of loaddefs files.
> * df32ded..: 2013-01-14 Dmitry Antipov * lisp.h (toplevel): Fix typo in
> comment.
The 'format' option supports alignment directive, so the format of the
output could be even prettier.
Here's what I use for a pretty log output:
git log --pretty='format:%h %<(18,mtrunc)%an %cd %s' --date=short