From: Jonathan Nieder <jrnieder@gmail.com>
To: demerphq <demerphq@gmail.com>
Cc: Git <git@vger.kernel.org>
Subject: Re: git diff --summary only seems to work when combined with --stat
Date: Mon, 6 Dec 2010 15:03:04 -0600 [thread overview]
Message-ID: <20101206210304.GA9735@burratino> (raw)
In-Reply-To: <AANLkTimCAy8kcQaKNaxz4UJp2ZB=_HeRMmeaQ5ZHNV4g@mail.gmail.com>
Hi Yves,
demerphq wrote:
> It seems like the --summary option only works in combination --stat.
>
> It doesn't seem to work if I use it by itself, nor in combination with
> --name-status or --num-stat. And depending on the order, it either
> does nothing, or causes a usage note.
It is tricky, but as you noticed --summary is not actually about the
diffstat. --summary affects the output summarizing new files and
renamed files.
Example:
$ git diff --summary v1.7.2..v1.7.3
delete mode 100644 Documentation/RelNotes-1.5.0.1.txt
delete mode 100644 Documentation/RelNotes-1.5.0.2.txt
[...]
> $ git diff --name-status --sumary HEAD^
> usage: git diff <options> <rev>{0,2} -- <path>*
There is an 'm' missing here. :)
Hope that helps,
Jonathan
next prev parent reply other threads:[~2010-12-06 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 20:55 git diff --summary only seems to work when combined with --stat demerphq
2010-12-06 21:03 ` Jonathan Nieder [this message]
2010-12-07 6:53 ` demerphq
2010-12-07 6:55 ` demerphq
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101206210304.GA9735@burratino \
--to=jrnieder@gmail.com \
--cc=demerphq@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).