Re: Strange output of git-diff-tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jakub Narebski <jnareb@xxxxxxxxx> writes:

> First (noticed by matled) is that for git-diff-tree with single tree
> as an argument it outputs fist commit-id of commit given at input. 
> It is not mentioned in documentation and I think totally unnecessary:
>
> 1038:jnareb@roke:~/git> git diff-tree --abbrev origin
> d5dc6a76d49367cddc015e01d2e9aa22e64d7e28
> :040000 040000 44fb36d... 1c26294... M  Documentation

Working as specified as in the original version.  See
core-tutorial and look for "git-diff-tree -p HEAD".

> Second, for some combination of options for it returns "..." instead of
> 0{40} for file creation.

Well spotted.  The minimum reproduction recipe is:

     $ git diff-tree --find-copies-harder 2ad9331

Will look into it.

> Third, while it detects that gitweb/gitweb.perl was renamed from 
> gitweb/gitweb.cgi:
>   [...]  R100   gitweb/gitweb.cgi       gitweb/gitweb.perl
> it does not notice that gitweb/gitweb.cgi was gitweb.cgi in 
> 1130ef362fc8d9c3422c23f5d5a833e93d3f5c13.

Depends on how you ask.

git diff-tree --abbrev --pretty -m -M -r --diff-filter=R 0a8f4f00

or

git diff-tree --abbrev --pretty -c -M -r 0a8f4f00

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]