summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-09 23:53:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-10 03:42:54 (GMT)
commitcb102b083252b575b18afa8d4b4a4b1bc1ffdf9e (patch)
treef359c9671268f6753a8313b3fa0198fa2b4b1408 /git-filter-branch.sh
parent2c733fb24c10a9d7aacc51f956bf9b7881980870 (diff)
downloadgit-cb102b083252b575b18afa8d4b4a4b1bc1ffdf9e.zip
git-cb102b083252b575b18afa8d4b4a4b1bc1ffdf9e.tar.gz
git-cb102b083252b575b18afa8d4b4a4b1bc1ffdf9e.tar.bz2
filter-branch: do not forget the '@' prefix to force git-timestamp
For some reason, this script reinvents, instead of refactoring the existing one in git-sh-setup, the logic to grab ident information from an existing commit; it was missed when the corresponding logic in git-sh-setup was updated with 2c733fb (parse_date(): '@' prefix forces git-timestamp, 2012-02-02). Teach the script that it is OK to have a way ancient timestamp in the commits that are being filtered. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 804a7f4..b9cded5 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -84,7 +84,7 @@ set_ident () {
s/.*/GIT_'$uid'_EMAIL='\''&'\''; export GIT_'$uid'_EMAIL/p
g
- s/^'$lid' [^<]* <[^>]*> \(.*\)$/\1/
+ s/^'$lid' [^<]* <[^>]*> \(.*\)$/@\1/
s/'\''/'\''\'\'\''/g
s/.*/GIT_'$uid'_DATE='\''&'\''; export GIT_'$uid'_DATE/p