diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-10-23 00:32:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-10-23 00:32:11 -0400 |
commit | 94d448427b7c6497777c1d783ed536dc70582357 (patch) | |
tree | 2c793cd86604984121b73be28482ff3816cd28c9 /devtools | |
parent | e3e375a9ec47ea8aa688b692d4da3f6946c5a1a4 (diff) | |
download | gpsd-94d448427b7c6497777c1d783ed536dc70582357.tar.gz |
Add an identity tag filter so tags won't vanish after the filter-branch op.
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/editcomment | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/editcomment b/devtools/editcomment index a9f24d09..eae60607 100755 --- a/devtools/editcomment +++ b/devtools/editcomment @@ -4,8 +4,8 @@ # and pushing them to a repo with the old commits will wreak havoc. # Note also that this cavalierly overwrites refs/original. # -# This script by Eric S. Raymond, March 2010, all rites perverted. -# It's based on an idea by thiago from #git, but debugged and with a safety. +# This script by Eric S. Raymond, March 2010, all rites perverted. It's based +# on an idea by thiago from #git, but debugged and with a safety check. # It contains porcelain and porcelain byproducts. topdir=`git rev-parse --show-cdup` @@ -40,7 +40,7 @@ my_editor=emacsclient export my_file my_commit my_editor -exec git filter-branch -f --msg-filter ' +exec git filter-branch -f --tag-name-filter cat --msg-filter ' if test "$GIT_COMMIT" = "$my_commit"; then cat > $my_file; $my_editor $my_file >/dev/null; |