git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Graham <mdg149@gmail.com>
To: git@vger.kernel.org
Subject: how to diff versions of a file
Date: Tue, 3 Feb 2009 00:00:51 -0500	[thread overview]
Message-ID: <1c5969370902022100h7c03bbb6h2d9f443f877d89ec@mail.gmail.com> (raw)

Hi,
I'm curious if there's a way to diff between 2 arbitrary versions of a file.

For example, how can I see the diff between tree.c on HEAD and from 3
edits (of tree.c) ago?

I can do git log and then manually use commit names to do the diff,
but I'm hoping there's a single command that will let me do that.

Thanks,
Matt

             reply	other threads:[~2009-02-03  5:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03  5:00 Matt Graham [this message]
2009-02-03  6:08 ` how to diff versions of a file david
2009-02-03  6:34   ` Junio C Hamano
2009-02-03 13:48     ` Matt Graham
2009-02-03  7:34 ` Jeff King

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=1c5969370902022100h7c03bbb6h2d9f443f877d89ec@mail.gmail.com \
    --to=mdg149@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).