Re: [PATCH v4 1/3] push: add reflog check for "--force-if-includes"
- From
Srinidhi Kaushik <shrinidhi.kaushik@gmail.com>
- Date
- Sep 23, 2020, 10:27 UTC
- Message-ID
- <20200923102711.GB70669@mail.clickyotomy.dev>
- In-Reply-To
- <f6bb2b1f-0f1b-f196-59f1-893580430cf2@gmail.com>
Hi Phillip,
On 09/21/2020 14:19, Phillip Wood wrote:
Show 5 quoted lines
> As I said before[1] I think we should also be checking the reflog dates so > that we do not look at any local reflog entries that are older than the most > recent reflog entry for the remote tracking branch. This protects against a > background fetch when the remote has been rewound and it would also reduce > the number of calls to in_merge_bases().
Thanks for suggesting this; I must have missed it earlier (sorry). The latest patch [1], has been updated to take timestamps into account which helps reduce the number of reflog iterations.
[1]: https://public-inbox.org/git/20200923073022.61293-1-shrinidhi.kaushik@gmail.com/
Thanks. -- Srinidhi Kaushik