git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zack Brown <zacharyb@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Using "git log" to find the files patched at the same time as a  named file
Date: Wed, 3 Feb 2010 16:14:02 -0500	[thread overview]
Message-ID: <218b69371002031314rb52da81k92c45f79dc6feca@mail.gmail.com> (raw)
In-Reply-To: <7vk4uughzf.fsf@alter.siamese.dyndns.org>

On Wed, Feb 3, 2010 at 3:52 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Zack Brown <zacharyb@gmail.com> writes:
>
>> If I have a filename I'm interested in, and I want to find other files
>> that have been modified in the same commits that modified the file I'm
>> interested in, how could I do that with git?
>
> Like this?
>
> $ git log --full-diff --name-status v1.6.0..master -- Makefile

Yes! Thank you!

I went back to the man page to see why I didn't find that before.
Here's the text for the --full-diff option:

   "Without this flag, "git log -p <path>..." shows commits that touch
   the specified paths, and diffs about the same specified paths. With
   this, the full diff is shown for commits that touch the specified
   paths; this means that "<path>..." limits only commits, and doesn’t
   limit diff for those commits."

That's all the text that deals with --full-diff in the git log
manpage. I'm not sure what it's trying to say - it seems really hard
to understand. What about something like this:

"Without this flag, "git log -p <path>..." shows commits that touch
the specified paths, but it only includes the diffs from those commits
that affected those specified paths, regardless of whether other paths
were changed in those same commits. With "git log --full-diff -p
<path>...", git still only reports commits that touch the specified
path, but now it also includes the diffs that affected any other paths
changed in those same commits."

Would that be an improvement?

Be well,
Zack

>
> to ask "Which files have changed in the commit that touch Makefile since
> v1.6.0 up to the tip of the master?"
>



-- 
Zack Brown

  reply	other threads:[~2010-02-03 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-03 20:38 Using "git log" to find the files patched at the same time as a named file Zack Brown
2010-02-03 20:52 ` Junio C Hamano
2010-02-03 21:14   ` Zack Brown [this message]
2010-02-03 21:36     ` Junio C Hamano
2010-02-03 21:52       ` Zack Brown

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=218b69371002031314rb52da81k92c45f79dc6feca@mail.gmail.com \
    --to=zacharyb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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).