Prompt to add files before commit?
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Sep 3 14:24:13 UTC 2024
There is an option that list the remainings change after a commit.
[commands]
commit.post-status = yes
It would allow you to detect the error right away and run a `hg commit
--amend` to fix it.
(I would be happy to have a "summary" version of this that only list the
number of files untracked/added/modified/etc…)
On 8/14/24 19:24, Simon Harrison wrote:
> Hello all. Fairly often, I'll commit without running
>
> $ hg add
>
> So, then I'll have to do another commit purely to add the files I
> forgot. Is there a setting or extension that could alert me that I'm
> about to commit, but there are untracked files in the working directory?
>
> $ hg commit
>
> $ You have untracked files! [(i)gnore / (r)eview / (a)bort]?
>
> Thanks
> _______________________________________________
> Mercurial mailing list
> Mercurial at lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial
--
Pierre-Yves David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20240903/60eea085/attachment.html>
More information about the Mercurial
mailing list