From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Cc: "Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au>
Subject: [BUG] git-log --follow incompatibile with --max-count
Date: Fri, 7 Nov 2008 19:38:09 +0100 [thread overview]
Message-ID: <200811071938.11170.jnareb@gmail.com> (raw)
First, it is a bit strange that while "git log" understand '--follow'
option, "git rev-parse" (the plumbing equivalent to be used in scripts)
does not.
Second, somehow "git log --follow <filename>" is incompatible with
'-n' / '--max-count':
$ git log --max-count=10 --follow --pretty=oneline --abbrev-commit gitweb/gitweb.perl
f24dce1... gitweb: Separate features with no project specific override
61b4606... gitweb: Better processing format string in custom links in navbar
$ git log --max-count=10 --pretty=oneline --abbrev-commit gitweb/gitweb.perl
f24dce1... gitweb: Separate features with no project specific override
61b4606... gitweb: Better processing format string in custom links in navbar
8db49a7... gitweb: generate parent..current URLs
b0be383... gitweb: parse parent..current syntax from PATH_INFO
3550ea7... gitweb: use_pathinfo filenames start with /
b02bd7a... gitweb: generate project/action/hash URLs
d8c2882... gitweb: parse project/action/hash_base:filename PATH_INFO
1b2d297... gitweb: refactor input parameters parse/validation
3e3d4ee... Merge branch 'pb/gitweb-tagcloud' into pb/gitweb
0d1d154... gitweb: Support for simple project search form
$ git log --max-count=10 --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l
10
Without '--nax-count' it works correctly:
$ git log --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l
446
$ git log --follow --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l
485
Both bugs were noticed by Guy Blucher when writing 'historyfollow'
patch for gitweb:
"[RFC] gitweb: add 'historyfollow' view that follows renames"
Msg-ID: <054F21930D24A0428E5B4588462C7AED0149B4B8@ednex512.dsto.defence.gov.au>
http://permalink.gmane.org/gmane.comp.version-control.git/99199
--
Jakub Narebski
Poland
reply other threads:[~2008-11-07 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200811071938.11170.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=Guy.Blucher@dsto.defence.gov.au \
--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