* git diff with add/modified codes
@ 2007-07-27 22:05 Jon Smirl
2007-07-27 23:22 ` Junio C Hamano
0 siblings, 1 reply; 9+ messages in thread
From: Jon Smirl @ 2007-07-27 22:05 UTC (permalink / raw)
To: Git Mailing List
Is there a magic git diff incantation that will add file status codes
(Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R)) to the
--stat output? I can't see how to get this info on any diff output
without doing multiple diffs with --diff-filter.
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-27 22:05 git diff with add/modified codes Jon Smirl
@ 2007-07-27 23:22 ` Junio C Hamano
2007-07-28 0:17 ` Jon Smirl
2007-07-28 0:48 ` Johannes Schindelin
0 siblings, 2 replies; 9+ messages in thread
From: Junio C Hamano @ 2007-07-27 23:22 UTC (permalink / raw)
To: Jon Smirl; +Cc: Git Mailing List
Would --stat --summary be satisfactory?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-27 23:22 ` Junio C Hamano
@ 2007-07-28 0:17 ` Jon Smirl
2007-07-28 4:39 ` Jeff King
2007-07-28 0:48 ` Johannes Schindelin
1 sibling, 1 reply; 9+ messages in thread
From: Jon Smirl @ 2007-07-28 0:17 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
On 7/27/07, Junio C Hamano <gitster@pobox.com> wrote:
> Would --stat --summary be satisfactory?
That's not what I want. I'm looking a report that indicates new files
vs modified ones in a single list. These old patches I am working with
often create 100 files and modify another 200.
Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),
Renamed (R)) to --stat would be perfect.
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-27 23:22 ` Junio C Hamano
2007-07-28 0:17 ` Jon Smirl
@ 2007-07-28 0:48 ` Johannes Schindelin
2007-07-28 0:54 ` Jon Smirl
1 sibling, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2007-07-28 0:48 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Jon Smirl, Git Mailing List
Hi,
On Fri, 27 Jul 2007, Junio C Hamano wrote:
> Would --stat --summary be satisfactory?
Or does "--raw" do the job?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-28 0:48 ` Johannes Schindelin
@ 2007-07-28 0:54 ` Jon Smirl
0 siblings, 0 replies; 9+ messages in thread
From: Jon Smirl @ 2007-07-28 0:54 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Junio C Hamano, Git Mailing List
On 7/27/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Fri, 27 Jul 2007, Junio C Hamano wrote:
>
> > Would --stat --summary be satisfactory?
>
> Or does "--raw" do the job?
Raw is much closer. Combine the file stats from --raw with --stat and
it would be perfect.
>
> Ciao,
> Dscho
>
>
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-28 0:17 ` Jon Smirl
@ 2007-07-28 4:39 ` Jeff King
2007-07-28 15:26 ` Jakub Narebski
0 siblings, 1 reply; 9+ messages in thread
From: Jeff King @ 2007-07-28 4:39 UTC (permalink / raw)
To: Jon Smirl; +Cc: Junio C Hamano, Git Mailing List
On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:
> That's not what I want. I'm looking a report that indicates new files
> vs modified ones in a single list. These old patches I am working with
> often create 100 files and modify another 200.
>
> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),
> Renamed (R)) to --stat would be perfect.
How about --name-status?
-Peff
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-28 4:39 ` Jeff King
@ 2007-07-28 15:26 ` Jakub Narebski
2007-07-28 18:07 ` Jon Smirl
0 siblings, 1 reply; 9+ messages in thread
From: Jakub Narebski @ 2007-07-28 15:26 UTC (permalink / raw)
To: git
Jeff King wrote:
> On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:
>
>> That's not what I want. I'm looking a report that indicates new files
>> vs modified ones in a single list. These old patches I am working with
>> often create 100 files and modify another 200.
>>
>> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),
>> Renamed (R)) to --stat would be perfect.
>
> How about --name-status?
Or -r --name-status?
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-28 15:26 ` Jakub Narebski
@ 2007-07-28 18:07 ` Jon Smirl
2007-07-29 21:36 ` Jakub Narebski
0 siblings, 1 reply; 9+ messages in thread
From: Jon Smirl @ 2007-07-28 18:07 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
On 7/28/07, Jakub Narebski <jnareb@gmail.com> wrote:
> Jeff King wrote:
>
> > On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:
> >
> >> That's not what I want. I'm looking a report that indicates new files
> >> vs modified ones in a single list. These old patches I am working with
> >> often create 100 files and modify another 200.
> >>
> >> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),
> >> Renamed (R)) to --stat would be perfect.
> >
> > How about --name-status?
>
> Or -r --name-status?
-r is not in the git diff doc but it is used in the examples.
http://www.kernel.org/pub/software/scm/git/docs/git-diff.html
--
Jon Smirl
jonsmirl@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: git diff with add/modified codes
2007-07-28 18:07 ` Jon Smirl
@ 2007-07-29 21:36 ` Jakub Narebski
0 siblings, 0 replies; 9+ messages in thread
From: Jakub Narebski @ 2007-07-29 21:36 UTC (permalink / raw)
To: Jon Smirl; +Cc: git
On Sat, 28 July 2007, Jon Smirl wrote:
> On 7/28/07, Jakub Narebski <jnareb@gmail.com> wrote:
>> Jeff King wrote:
>>
>>> On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:
>>>
>>>> That's not what I want. I'm looking a report that indicates new files
>>>> vs modified ones in a single list. These old patches I am working with
>>>> often create 100 files and modify another 200.
>>>>
>>>> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),
>>>> Renamed (R)) to --stat would be perfect.
>>>
>>> How about --name-status?
>>
>> Or -r --name-status?
>
> -r is not in the git diff doc but it is used in the examples.
> http://www.kernel.org/pub/software/scm/git/docs/git-diff.html
<quote>
<2> show only names and the nature of change, but not actual
diff output. --name-status disables usual patch generation
which in turn also disables recursive behavior, so without -r
you would only see the directory name if there is a change in a
file in a subdirectory.
</quote>
"Of course" one knows that "git diff <tree-ish> <tree-ish>" is
git-diff-tree in disguise, and accepts git-diff-tree options.
By the way, I was thinking about extending --numstat output to include
also status. Current --numstat output is ill fitted to deal with renames
and copies, at least ill fitted for machine consumption of renames
output; it uses "old_name => new_name" as a filename for renames. While
it would be fairly easy to put pre- and after-rename names separated
by TAB, and quoted if needed (including embedded TAB character in
the filename, which would be quoted as \t instead) without breaking
anu current --numstat output parsers (although I don't think any of
them uses -M/-C), it would be hard to do the same for --numstat -z output.
A solution (not best, I admit) would be to use NUL NUL to separate pre-
and post-image filename, but I think it would be best to add new
--numstat-extended format to git-diff.
P.S. Is binary diff output described somewhere?
--
Jakub Narebski
Poland
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-07-29 22:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 22:05 git diff with add/modified codes Jon Smirl
2007-07-27 23:22 ` Junio C Hamano
2007-07-28 0:17 ` Jon Smirl
2007-07-28 4:39 ` Jeff King
2007-07-28 15:26 ` Jakub Narebski
2007-07-28 18:07 ` Jon Smirl
2007-07-29 21:36 ` Jakub Narebski
2007-07-28 0:48 ` Johannes Schindelin
2007-07-28 0:54 ` Jon Smirl
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).