Imported Upstream version 2.29.2 upstream/2.29.2
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 3 Mar 2021 06:17:22 +0000 (15:17 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 3 Mar 2021 06:17:22 +0000 (15:17 +0900)
Documentation/RelNotes/2.29.2.txt [new file with mode: 0644]
Documentation/git-filter-branch.txt
GIT-VERSION-GEN
RelNotes
builtin/am.c
sequencer.c
t/t3436-rebase-more-options.sh

diff --git a/Documentation/RelNotes/2.29.2.txt b/Documentation/RelNotes/2.29.2.txt
new file mode 100644 (file)
index 0000000..632b5b5
--- /dev/null
@@ -0,0 +1,12 @@
+Git v2.29.2 Release Notes
+=========================
+
+This release is primarily to fix brown-paper-bag breakages in the
+2.29.0 release.
+
+Fixes since v2.29.1
+-------------------
+
+ * In 2.29, "--committer-date-is-author-date" option of "rebase" and
+   "am" subcommands lost the e-mail address by mistake, which has been
+   corrected.
index 40ba4aa..62e482a 100644 (file)
@@ -532,7 +532,7 @@ The https://github.com/newren/git-filter-repo/[git filter-repo] tool is
 an alternative to git-filter-branch which does not suffer from these
 performance problems or the safety problems (mentioned below). For those
 with existing tooling which relies upon git-filter-branch, 'git
-repo-filter' also provides
+filter-repo' also provides
 https://github.com/newren/git-filter-repo/blob/master/contrib/filter-repo-demos/filter-lamely[filter-lamely],
 a drop-in git-filter-branch replacement (with a few caveats).  While
 filter-lamely suffers from all the same safety issues as
index eee57d9..ca6ccb4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v2.29.1
+DEF_VER=v2.29.2
 
 LF='
 '
index 5e9b843..01daa17 120000 (symlink)
--- a/RelNotes
+++ b/RelNotes
@@ -1 +1 @@
-Documentation/RelNotes/2.29.1.txt
\ No newline at end of file
+Documentation/RelNotes/2.29.2.txt
\ No newline at end of file
index 2c7673f..4949535 100644 (file)
@@ -161,7 +161,7 @@ static void am_state_init(struct am_state *state)
        state->committer_name =
                xmemdupz(id.name_begin, id.name_end - id.name_begin);
        state->committer_email =
-               xmemdupz(id.mail_begin, id.mail_end - id.mail_end);
+               xmemdupz(id.mail_begin, id.mail_end - id.mail_begin);
 }
 
 /**
@@ -1595,7 +1595,7 @@ static void do_commit(const struct am_state *state)
 
        if (state->committer_date_is_author_date)
                committer = fmt_ident(state->committer_name,
-                                     state->author_email, WANT_COMMITTER_IDENT,
+                                     state->committer_email, WANT_COMMITTER_IDENT,
                                      state->ignore_date ? NULL
                                                         : state->author_date,
                                      IDENT_STRICT);
index 00acb12..d76cbde 100644 (file)
@@ -4478,7 +4478,7 @@ static int init_committer(struct replay_opts *opts)
        opts->committer_name =
                xmemdupz(id.name_begin, id.name_end - id.name_begin);
        opts->committer_email =
-               xmemdupz(id.mail_begin, id.mail_end - id.mail_end);
+               xmemdupz(id.mail_begin, id.mail_end - id.mail_begin);
 
        return 0;
 }
index 996e827..eaaf4c8 100755 (executable)
@@ -65,8 +65,8 @@ test_expect_success '--ignore-whitespace is remembered when continuing' '
 '
 
 test_ctime_is_atime () {
-       git log $1 --format=%ai >authortime &&
-       git log $1 --format=%ci >committertime &&
+       git log $1 --format="$GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> %ai" >authortime &&
+       git log $1 --format="%cn <%ce> %ci" >committertime &&
        test_cmp authortime committertime
 }