Alistair Lynn writes:
> $ git commit --allow-empty -m ‘test’
> $ git revert HEAD
>
> The latter fails silently, leaving HEAD pointing at the commit created
> by the first command.
I do not necessarily think it is a bug to ignore reverting a no-op.
"revert a no-op" should probably fail by default
Hello gitters
Steps to reproduce:
$ git commit --allow-empty -m ‘test’
$ git revert HEAD
The latter fails silently, leaving HEAD pointing at the commit created by the
first command.
A subsequent `git commit --allow-empty` has the revert message as the default
commit message when starting the
2 matches
Mail list logo