git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Adding "--ignore-submodules" switch to git-describe

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Mar 8, 2013, 20:04 UTC
Message-ID
<CAC9WiBhHmqn7QZMLFcLjqGPamHmbMFNxvQ6Yzv5dr=+fe+F3_g@mail.gmail.com>
In-Reply-To
<7v621bggi5.fsf@alter.siamese.dyndns.org>
Hi,
Sorry for the long delay, I somehow missed your answer...
On Fri, Mar 1, 2013 at 6:46 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Francis Moreau <francis.moro@gmail.com> writes:
>
>> Would it make sense to add the option --ignore-submodules (currently
>> available in git-status) to git-describe when the later is used with
>> --dirty option ?
>
> I think the spirit of "describe --dirty" is to allow people who
> gives out binaries this assurance:
>
>         The version string I got out of "describe --dirty" does not
>         say dirty. If the recipient of the binary later reports
>         issues, I should be able to reproduce the same binary by
>         starting from a pristine checkout of the version (provided
>         if I didn't screw up and depended on an untracked file when
>         I initially created the binary, or used a custom build
>         option, or lost the toolchain, ..., of course).
>
> With that in mind, does --ignore-submodules make sense?

Well, I wouldn't have thought about this definition of "describe --dirty". I would have thought that, by default, this command look only at the files that git knows/tracks. There're too many external (to the git repo) parameters that could influence the build of a project: environment variables, components of the toolchain, version of each components etc... that git doesn't know about.

[...]
Show 5 quoted lines
>
> But when we ignore untracked paths in the superproject, we should
> ignore untracked paths in submodule working trees consistently.
>
>
yes I agree.

But in the short term, could you suggest a method to workaround this inconsistency ?

Thanks.
-- 
Francis
Previous: Jens LehmannNext: Junio C Hamano
Message 4 of 5 in “Adding "--ignore-submodules" switch to git-describe”
  1. Francis MoreauMar 1, 2013
  2. Junio C HamanoMar 1, 2013
  3. Jens LehmannMar 1, 2013
  4. Francis MoreauMar 8, 2013
  5. Junio C HamanoMar 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.