git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* bug report/feature request: git describe: what is 'clean'
@ 2020-12-01 10:46 Ernst Reissner
  2020-12-01 20:03 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ernst Reissner @ 2020-12-01 10:46 UTC (permalink / raw)
  To: git

Hello All,

find below a bug report/feature request.

Regards,

Ernst


Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
i have a workspace with untracked files, else clean.
then i did `git describe`.
What did you expect to happen? (Expected behavior)
I expected to see a label 'dirty'
What happened instead? (Actual behavior)
no label `dirty`
What's different between what you expected and what actually happened?
obvious
Anything else you want to add:
I know that this is not precisely a bug,
Instead it is a feature request.
Practically, `git describe` is used to determine a version.
For me the sense of 'dirty' is to indicate that this deliverable is not 
reproducible from the repo.
Thus it may not be delivered to a customer.
So in this sense, untracked files make a workspace dirty also.

Without the need of backward compatibility, i would say, dirty is all,
which is tracked and modified staged or not,
or which is untracked but not ignored.

To keep backward compatibility,
maybe it is a good idea to add a second suffix, maybe 'untracked' to 
display in addition.
That way it is clear: only if no suffix is present, software from repo 
can be delivered
and one is sure that this is reproducible.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.29.2
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.9.1-2-default #1 SMP Mon Oct 26 07:02:23 UTC 2020 
(435e92d) x86_64
compiler info: gnuc: 10.2
libc info: glibc: 2.32
$SHELL (typically, interactive shell): /bin/bash




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug report/feature request: git describe: what is 'clean'
  2020-12-01 10:46 bug report/feature request: git describe: what is 'clean' Ernst Reissner
@ 2020-12-01 20:03 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2020-12-01 20:03 UTC (permalink / raw)
  To: Ernst Reissner; +Cc: git

Ernst Reissner <rei3ner@arcor.de> writes:

> To keep backward compatibility,
> maybe it is a good idea to add a second suffix, maybe 'untracked' to
> display in addition.

It won't work for folks who have used output from "describe --dirty"
as the base of their version number, as their procedure do not know
they need to strip "-untracked" at the end.  

A new option, "describe --dirty --untracked", is possible, though.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-01 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 10:46 bug report/feature request: git describe: what is 'clean' Ernst Reissner
2020-12-01 20:03 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).