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>
Junio C Hamano committed
Jul 9, 2012 at 16:53 UTC
cb102b083252b575b18afa8d4b4a4b1bc1ffdf9e
1 file changed
+1
-1
git-filter-branch.sh
+1
-1
@@ -84,7 +84,7 @@ set_ident () {
84
s/.*/GIT_'$uid'_EMAIL='\''&'\''; export GIT_'$uid'_EMAIL/p
85
86
g
87
- s/^'$lid' [^<]* <[^>]*> \(.*\)$/\1/
87
+ s/^'$lid' [^<]* <[^>]*> \(.*\)$/@\1/
88
s/'\''/'\''\'\'\''/g
89
s/.*/GIT_'$uid'_DATE='\''&'\''; export GIT_'$uid'_DATE/p
90