From: Johan Herland <johan@herland.net>
To: Jens Lehmann <Jens.Lehmann@web.de>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Andy Parkins <andyparkins@gmail.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH 0/2] Add optional parameters to the diff option "--ignore-submodules"
Date: Wed, 09 Jun 2010 00:11:14 +0200 [thread overview]
Message-ID: <201006090011.14995.johan@herland.net> (raw)
In-Reply-To: <4C0E7037.8080403@web.de>
On Tuesday 08 June 2010, Jens Lehmann wrote:
> After thinking some time about peoples expectations and troubles
> with the recursive scanning of submodules, I came up with this:
>
> What about expanding the "--ignore-submodules" option of the git diff
> family with three parameters:
>
> --ignore-submodules=all : Same behavior as "--ignore-submodules",
> submodules show never up as modified.
>
> --ignore-submodules=untracked : Don't consider submodules as modified
> when they only contain untracked files, but do if the commits in the
> superproject are different or tracked content is modified.
>
> --ignore-submodules=dirty : Don't consider submodules as modified
> when their work tree is dirty, no matter why. This is the pre 1.7.0
> behavior and doesn't recurse into submodules at all.
Pardon my ignorance: Does this make "dirty" a superset of "untracked"? Or
are they orthogonal. And how does "all" compare to "dirty"? Are they
synonyms, or is "all" a superset of "dirty"?
> To make that more useful the default could be controlled by the
> .git/config or .gitmodules file. So you could have two submodules:
>
> [submodule "sub1"]
> path = sub1
> url = /home/me/sub1.git/
> ignore = dirty
> [submodule "sub2"]
> path = sub2
> url = /home/me/sub2.git/
> ignore = untracked
>
> [...]
>
> Opinions?
I agree with adding support for this in .gitmodules, to allow customizing on
a per-submodule level.
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
next prev parent reply other threads:[~2010-06-08 22:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 16:30 [PATCH 0/2] Add optional parameters to the diff option "--ignore-submodules" Jens Lehmann
2010-06-08 16:31 ` [PATCH 1/2] git diff: rename test that had a conflicting name Jens Lehmann
2010-06-08 16:31 ` [PATCH 2/2] Add optional parameters to the diff option "--ignore-submodules" Jens Lehmann
2010-06-24 14:23 ` Brandon Casey
2010-06-24 17:11 ` Jens Lehmann
2010-06-08 17:28 ` [PATCH 0/2] " Junio C Hamano
2010-06-08 20:41 ` Jens Lehmann
2010-06-08 21:02 ` Johannes Schindelin
2010-06-08 23:26 ` Junio C Hamano
2010-06-08 23:36 ` Johannes Schindelin
2010-06-08 22:11 ` Johan Herland [this message]
2010-06-08 22:19 ` Jens Lehmann
2010-06-08 23:49 ` Johan Herland
2010-06-09 6:23 ` Jens Lehmann
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=201006090011.14995.johan@herland.net \
--to=johan@herland.net \
--cc=Jens.Lehmann@web.de \
--cc=Johannes.Schindelin@gmx.de \
--cc=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).