for an emacs implementation needed: equivalent to git reset --soft

Uwe Brauer oub at mat.ucm.es
Tue Oct 18 17:49:09 UTC 2022


Hi

There is an ongoing discussion on the emacs devel list, what is the best
(and fastest) way to implement a sort of interactive commits (like the
perl script commit-patch does).

Dmitry Gutov, who is implementing currently, asked and I quote

,----
| Wish we managed to implement something faster for Hg.
| 
| 'hg import --bypass' seemed the most promising option, but the 'hg
| update tip' step that you suggested can end up in conflict.
| 
| I've searched for some "plumbing" Hg command corresponding to 'git reset
| --soft' and couldn't find it.
`----

 so 
 hg up 
might cause problems, he says, all other options 

 hg uncommit 
 hg revert  

Change the file content, he want a checkout, but without running a merge
in case of a conflict I understand I don't know enough git to understand
that fully.

Any advice from somebody who is familiar of both DVCS would be highly
welcome.

Thanks and regards

Uwe Brauer 




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20221018/ed25192d/attachment.p7s>


More information about the Mercurial-devel mailing list