From: Junio C Hamano <junkio@cox.net>
To: Marco Costalba <mcostalba@yahoo.it>
Cc: git@vger.kernel.org
Subject: Re: Check for differents trees
Date: Sun, 06 Nov 2005 10:09:34 -0800 [thread overview]
Message-ID: <7vy841y7fl.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051106153830.18963.qmail@web26312.mail.ukl.yahoo.com> (Marco Costalba's message of "Sun, 6 Nov 2005 07:38:30 -0800 (PST)")
Marco Costalba <mcostalba@yahoo.it> writes:
> What I use now is:
>
> git-diff-tree -r --name-status sha1 sha2
>
> An then I parse the output for 'A' or 'D' as first char of
> each line. When I found one of that two chars I kwnow trees
> have different files set.
>
> The problem is that if sha1 and sha2 correspond to very
> "distant" revision the output of git-diff-tree can be very
> long and also usless as long as I stop searching at first
> match.
Perhaps
$ git-diff-tree -r --name-status --diff-filter=AD sha1 sha2
would help you somewhat? This would not make the diff
generation part quicker, but at least you do not have to parse
other types of changes.
next prev parent reply other threads:[~2005-11-06 18:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-06 15:38 Check for differents trees Marco Costalba
2005-11-06 18:09 ` Junio C Hamano [this message]
2005-11-06 18:24 ` Johannes Schindelin
-- strict thread matches above, loose matches on Subject: below --
2005-11-06 19:02 Marco Costalba
2005-11-08 17:13 ` Junio C Hamano
2005-11-10 6:35 Marco Costalba
2005-11-10 6:57 Marco Costalba
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=7vy841y7fl.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=mcostalba@yahoo.it \
/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