When should a user prefer one of `hg amend` or `hg commit --amend`?
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Oct 23 21:03:48 UTC 2015
On 10/23/2015 10:01 PM, Long Vu wrote:
> On Fri, Oct 23, 2015 at 4:35 PM, Pierre-Yves David
> <pierre-yves.david at ens-lyon.org> wrote:
>>
>>
>> On 10/23/2015 08:47 PM, Long Vu wrote:
>>>
>>> So both add the uncommitted changes in the workdir into the new commit
>>> and obsolete the original one.
>>>
>>> `hg amend` create a "temporary amend commit" while `hg commit --amend` do
>>> not.
>>
>>
>> They both behave the same way in this regard, they actually use the very
>> same code-path.
>
> `hg commit --amend` just silently discard the temporary amend commit
> while `hg amend` keeps it?
There should be no difference there. Do you see any difference?
--
Pierre-Yves David
More information about the Evolve-testers
mailing list