Re: [PATCH 5/5] submodule: submodule_move_head omits old argument in forced case
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 19, 2017, 23:15 UTC
- Message-ID
- <20171219231544.GH240141@aiede.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kake8k2dM=NPwNoqB5Vkxy+k67PACz01-aXx6-njcisgQ@mail.gmail.com>
Hi,
Stefan Beller wrote:
> On Tue, Dec 19, 2017 at 2:44 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> checkout -f >> I think I would expect this not to touch a submodule that >> hasn't changed, since that would be consistent with its >> behavior on files that haven't changed.
[...]
> I may have a different understanding of git commands than you do, > but a plain "checkout -f" with no further arguments is the same as > a hard reset IMHO, and could be used interchangeably?
Ah, good catch. Filed https://crbug.com/git/5 to clarify this in documentation. Thanks for clarifying.
Jonathan