Re: [PATCH v8 4/5] rebase -i: support --ignore-date

2 messages, 2 authors, 2020-08-20 · open the first message on its own page

Re: [PATCH v8 4/5] rebase -i: support --ignore-date

From: Junio C Hamano <hidden>
Date: 2020-08-19 22:20:26

Phillip Wood [off-list ref] writes:
quoted
+# Checking for +0000 in the author date is sufficient since the
+# default timezone is UTC but the timezone used while committing is
+# +0530. The inverted logic in the grep is necessary to check all the
+# author dates in the file.
+test_ctime_is_ignored () {
+	git log $1 --format=%ai >authortime &&
+	! grep -v +0000 authortime
+}

I don't know what I was thinking when I wrote that - it should be called
test_atime_is_ignored() as it's testing the author date
Will tweak locally.  No need to resend.

Thanks.

Re: [PATCH v8 4/5] rebase -i: support --ignore-date

From: Phillip Wood <hidden>
Date: 2020-08-20 15:16:35

On 19/08/2020 23:20, Junio C Hamano wrote:
Phillip Wood [off-list ref] writes:
quoted
quoted
+# Checking for +0000 in the author date is sufficient since the
+# default timezone is UTC but the timezone used while committing is
+# +0530. The inverted logic in the grep is necessary to check all the
+# author dates in the file.
+test_ctime_is_ignored () {
+	git log $1 --format=%ai >authortime &&
+	! grep -v +0000 authortime
+}

I don't know what I was thinking when I wrote that - it should be called
test_atime_is_ignored() as it's testing the author date
Will tweak locally.  No need to resend.
Thanks for doing that

Best wishes

Phillip
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help