From: Steinar Bang <sb@dod.no>
To: git@vger.kernel.org
Subject: Is there a "--follow" equvalent argument to git-rev-list?
Date: Mon, 28 Nov 2011 11:37:02 +0100 [thread overview]
Message-ID: <87vcq4zg6p.fsf@dod.no> (raw)
I'm trying to make emacs vc log (`C-x v l') show the full history of git
versioned files.
In my first attempt, I tried adding a "--follow" argument to "git log"
in the vc-git-print-log message. This made `C-x v l' show the full log.
But the problem with this solution was that commands done from the log,
such as diffing (a very convenient way to do diffs, when the "version
numbers" are sha1 hashes...), showing a particular revision, or
annotating from that revision and back, didn't work. See the comment at
the end of this bug:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8756
Today I decided to take another peek at this, but vc-git.el in the emacs
23.1 version of the file, now uses "git rev-list" instead of "git log"
to get the revision list.
And "git rev-list" doesn't seem to have anything similar to
"--follow"...? At least I haven't found it.
The man page doesn't contain the text "renam".
Guessing at what the man page has meant, I've tried adding the "--all"
and "--full-history" arguments, but `C-x v l' still only shows history
back to the last move.
Is there an argument to "git rev-list" that will make it track across
renames? Or is this only possible with "git log --follow"?
Thanks!
- Steinar
next reply other threads:[~2011-11-28 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 10:37 Steinar Bang [this message]
2011-11-28 19:53 ` Is there a "--follow" equvalent argument to git-rev-list? Junio C Hamano
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=87vcq4zg6p.fsf@dod.no \
--to=sb@dod.no \
--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).