Re: [PATCH] filter-branch fix and tests

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Wednesday, January 27, 2010 - 9:18 am

Michal Sojka schrieb:

You place the tree filter in double-quotes. Hence, orig_head will be
interpolated on the filter-branch command line. You don't need to export it.


What is the purpose of the check in the last line?

As long as you have another command after the "} || : &&", you can just
write "}" instead.


You must not change the directory without changing back. Use a sub-shell.

I'm not sure whether it's worth catering for this use-case anyway.
Replacing a submodule commit should really be done only in the
--index-filter. The tree that --tree-filter checks out is intended only as
a temporary scratch area. It is not intended as a full worktree. In
particular, since 'submodule update --init' changes the configuration, it
is extremly dangerous to call from a filter.

-- Hannes
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
filter-branch fix and tests , Michal Sojka, (Mon Jan 25, 6:06 am)
Re: [PATCH] filter-branch fix and tests, Michal Sojka, (Wed Jan 27, 8:49 am)
Re: [PATCH] filter-branch fix and tests, Johannes Sixt, (Wed Jan 27, 9:18 am)
Re: [PATCH] filter-branch fix and tests, Michal Sojka, (Wed Jan 27, 4:41 pm)
[PATCHv3] filter-branch: Add tests for submodules, Michal Sojka, (Wed Jan 27, 4:55 pm)
Re: [PATCHv3] filter-branch: Add tests for submodules, Junio C Hamano, (Wed Jan 27, 5:14 pm)
Re: [PATCHv3] filter-branch: Add tests for submodules, Michal Sojka, (Thu Jan 28, 2:02 am)