Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH 2/2] git-filter-branch.sh: don't use --default when calling rev-list

From: Brandon Casey <hidden>
Date: 2016-06-15 22:44:09

Possibly related (same subject, not in this thread)

Johannes Schindelin wrote:
Hi,

On Wed, 30 Jan 2008, Brandon Casey wrote:
quoted
This command requires a revision to be specified on the command line, so 
remove '--default HEAD' from the arguments to git rev-list. They are 
unnecessary.
But I thought that you wanted "git filter-branch --msg-filter=rot13" to 
work on HEAD by default?
I do. But isn't that inconsistent with "git filter-branch" does _not_ work
on HEAD by default and instead prints out usage information?

If I do:

	git filter-branch -d /tmp/git_temp

and it is successful, I think I would also expect this to succeed:

	git filter-branch

So, I think the "operates on HEAD" by default is consistent with what other
git tools do, but I think it is not consistent for filter-branch to sometimes
operate on HEAD by default and sometimes error with usage information.

Disclaimer: I have only used filter-branch for two tasks.

-brandon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help