[Xfce4-commits] r28557 - in xfce4-dev-tools/trunk: . scripts
Jannis Pohlmann
jannis at xfce.org
Sat Nov 1 21:04:18 CET 2008
Am Sat, 1 Nov 2008 09:35:02 -0700
schrieb "Brian J. Tarricone" <bjt23 at cornell.edu>:
> On Sat, 1 Nov 2008 11:44:28 +0000 (UTC) Jannis Pohlmann wrote:
>
> > Author: jannis
> > Date: 2008-11-01 11:44:28 +0000 (Sat, 01 Nov 2008)
> > New Revision: 28557
> >
> > Modified:
> > xfce4-dev-tools/trunk/ChangeLog
> > xfce4-dev-tools/trunk/scripts/xdt-commit
> > Log:
> > * scripts/xdt-commit: Automatically add ChangeLog files of
> > git repositories to the commit with "git add ${CHANGELOG}". Use
> > "git diff --cached" instead of "git diff HEAD" for the commit
> > messages.
>
> Hmm, not sure I like this... wouldn't "git diff HEAD^..HEAD" work
> better?
HEAD^..HEAD would print the diff between the previous and the last
commit. That's not really useful if you need the diff between HEAD and
the future commit. --cached and HEAD do the same, but there is help
explicitely available for --cached in the man page:
git diff [--options] --cached [<commit>] [--] [<path>...]
This form is to view the changes you staged for the next
commit relative to the named <commit>. Typically you would want
comparison with the latest commit, so if you do not give <commit>,
it defaults to HEAD.
- Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20081101/a2548752/attachment.pgp>
More information about the Xfce4-dev
mailing list