`git describe --dirty` doesn't consider untracked files to be dirty
- From
Ash Holland <ash@sorrel.sh>
- Date
- Sep 7, 2020, 09:04 UTC
- Message-ID
- <CAHJUbDg2KA9Xo_CAO=cgrZewOH0zfEhOVydhMN8fLvVDmji4sQ@mail.gmail.com>
Hi,
There seems to be a discrepancy between how `git describe --dirty` is documented and how it actually behaves. The documentation describes the --dirty flag like this:
> If the working tree has local modification "-dirty" is appended to it.
but certain kinds of "local modification", namely untracked files, don't cause "-dirty" to be included.
Please could this be fixed, either in the documentation or in git describe?
thanks, Ash she/they