From: Junio C Hamano <gitster@pobox.com>
To: Aaron Schrab <aaron@schrab.com>
Cc: Ash Holland <ash@sorrel.sh>, git@vger.kernel.org
Subject: Re: `git describe --dirty` doesn't consider untracked files to be dirty
Date: Sat, 19 Sep 2020 11:12:45 -0700 [thread overview]
Message-ID: <xmqqo8m1k542.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20200908231652.GC1014@pug.qqx.org> (Aaron Schrab's message of "Tue, 8 Sep 2020 19:16:52 -0400")
Aaron Schrab <aaron@schrab.com> writes:
> It's perhaps worth noting that submodules are already considered dirty
> when untracked files are added:
>
> $ git diff vim/bundle/fugitive
>
> $ echo foo >vim/bundle/fugitive/foo
>
> $ git diff vim/bundle/fugitive
> diff --git i/vim/bundle/fugitive w/vim/bundle/fugitive
> --- i/vim/bundle/fugitive
> +++ w/vim/bundle/fugitive
> @@ -1 +1 @@
> -Subproject commit caf3b1d5696e8d39a905e48f1e89d8c0c565168c
> +Subproject commit caf3b1d5696e8d39a905e48f1e89d8c0c565168c-dirty
In other words, if we do this in the state:
$ git -C vim/bundle/fugitive describe --dirty
the submodule directory is not reported as dirty.
This is worth fixing. I am leaning towards saying that `diff` is
wrong in this case, but I am OK to consider unifying the behaviour
the other way and making `describe --dirty` more strict.
Thanks.
next prev parent reply other threads:[~2020-09-19 18:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 9:04 `git describe --dirty` doesn't consider untracked files to be dirty Ash Holland
2020-09-08 7:40 ` Raymond E. Pasco
2020-09-08 16:33 ` Junio C Hamano
2020-09-08 23:16 ` Aaron Schrab
2020-09-08 23:59 ` Junio C Hamano
2020-09-19 18:12 ` Junio C Hamano [this message]
2020-09-20 0:17 ` Ash Holland
2020-09-20 1:46 ` Junio C Hamano
2020-09-20 2:12 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqo8m1k542.fsf@gitster.c.googlers.com \
--to=gitster@pobox.com \
--cc=aaron@schrab.com \
--cc=ash@sorrel.sh \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).