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

Re: [PATCH 2/2] filter-branch.sh: support nearly proper tag name filtering

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:25

Possibly related (same subject, not in this thread)

Johannes Schindelin [off-list ref] writes:
On Thu, 20 Mar 2008, Brandon Casey wrote:
quoted
Add support for creating a new tag object and retaining the tag message, 
author, and date when rewriting tags. The gpg signature, if one exists, 
will be stripped.

This adds nearly proper tag name filtering to filter-branch. Proper tag 
name filtering would include the ability to change the tagger, tag date, 
tag message, and _not_ strip a gpg signature if the tag did not change.
I think such a change in semantics merits a new option.
It is a different story if the fix is a good one, or has room for
improvement.  For example, the sed script that knows what is on the first
and second line and relies on that knowledge to use 1c...2c... looked very
fragile to me.

However, at least to me, this looked like an attempt for a pure "fix".

If you tell filter-branch to filter a branch A and a tag T, as the command
is advertised to rewrite positive refs that were given from the command
line, isn't it natural to expect that the command would attempt its best
effort to rewrite such a tag object?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help