cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: git and full change history

From: Jamie Lokier <jamie_at_shareable.org>
Date: Tue, 30 Mar 2010 01:35:24 +0100

Tor Arntsen wrote:
> On 29/03/2010, Yang Tse <yangsita_at_gmail.com> wrote:
> > Given current git master how does one see full change history for a given
> > file ?
>
> git log <filename>
>
> > For example with
> > http://github.com/bagder/curl/commits/master/configure.ac I can see
> > change history for configure.ac back to 2009-06-20. But how do I view
> > previous, full, history for same file?
>
> git log configure.ac
> (Unlike the github link it shows the commit hash only, not the other
> two, but otherwise it's about the same).

You can use "git log --graph" to show a nice line-graph alongside the
log, so you can easily see what's the parent. Or "git log --parents"
if you really want the parent ids.

"git log -p" is really handy too - shows the patch after each log entry.

"git show commit-id" shows the patch of a single commit-id.

-- Jamie
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-30