From: Jonathan Nieder <jrnieder@gmail.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, Git List <git@vger.kernel.org>
Subject: Re: [PATCH 5/5] git-diff.txt: fix ordering of the [--no-index] form
Date: Wed, 24 Apr 2013 13:37:32 -0700 [thread overview]
Message-ID: <20130424203732.GJ29963@google.com> (raw)
In-Reply-To: <CALkWK0=KWu3=j5sLK3hr=Gx5xLnLaPAY+E=J0_izRCj9YcBTEg@mail.gmail.com>
Ramkumar Ramachandra wrote:
> Jonathan Nieder wrote:
>> Because typing paths does not make my intent perfectly clear.
>
> I'm not able to understand this. Doesn't your prompt tell you which
> directory you're in, and if you're in a git repository? When you type
> out paths, you know what is inside and what is outside your
> repository. By extension, you know when --no-index is implied and
> when it isn't.
>
> Can you explain what your problem is?
Are you wondering why I use --no-index or why I think we should
eventually stop moving into --no-index mode by default?
The answers are different. I use --no-index because it means I don't
have to think about whether the files I am comparing are in a Git
repository. It's relaxing. I'm not advocating that you follow suit;
I'm just describing my own usage of the command.
I think git should eventually stop doing --no-index implicitly because
it is a very different mode using the same syntax triggered by
external conditions. That is
* hard to document
* problematic for scripts calling "git diff", can create lurking bugs
* unnecessarily complicated. For example:
* "git diff -h" output depends on whether I am in a git worktree.
* git searches for a .git directory, possibly hitting filesystem
automount points, just to decide whether its arguments are inside
the current repository.
next prev parent reply other threads:[~2013-04-24 20:37 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 16:33 [PATCH 0/5] Documentation/git-diff.txt improvements Ramkumar Ramachandra
2013-04-24 16:33 ` [PATCH 1/5] git-diff.txt: reorder the <commit> <commit> form Ramkumar Ramachandra
2013-04-24 16:41 ` Jonathan Nieder
2013-04-24 16:33 ` [PATCH 2/5] git-diff.txt: strip the leading "--" from options template Ramkumar Ramachandra
2013-04-24 16:43 ` Jonathan Nieder
2013-04-24 16:44 ` Ramkumar Ramachandra
2013-04-24 18:15 ` Junio C Hamano
2013-04-24 16:33 ` [PATCH 3/5] git-diff.txt: group the [--] and [<path>...] templates Ramkumar Ramachandra
2013-04-24 18:20 ` Junio C Hamano
2013-04-24 18:23 ` Ramkumar Ramachandra
2013-04-24 18:43 ` Junio C Hamano
2013-04-24 18:53 ` Ramkumar Ramachandra
2013-04-24 19:21 ` Junio C Hamano
2013-04-24 19:24 ` Ramkumar Ramachandra
2013-04-24 18:57 ` Jonathan Nieder
2013-04-24 16:33 ` [PATCH 4/5] git-diff.txt: document the .. and ... forms in SYNOPSIS Ramkumar Ramachandra
2013-04-24 19:03 ` Jonathan Nieder
2013-04-24 16:33 ` [PATCH 5/5] git-diff.txt: fix ordering of the [--no-index] form Ramkumar Ramachandra
2013-04-24 18:25 ` Junio C Hamano
2013-04-24 18:29 ` Ramkumar Ramachandra
2013-04-24 19:06 ` Jonathan Nieder
2013-04-24 19:10 ` Ramkumar Ramachandra
2013-04-24 19:14 ` Jonathan Nieder
2013-04-24 19:20 ` Ramkumar Ramachandra
2013-04-24 19:25 ` Jonathan Nieder
2013-04-24 19:37 ` Ramkumar Ramachandra
2013-04-24 20:37 ` Jonathan Nieder [this message]
2013-04-24 20:45 ` Ramkumar Ramachandra
2013-04-24 20:50 ` Jonathan Nieder
2013-04-24 20:55 ` Ramkumar Ramachandra
2013-04-24 17:03 ` [PATCH 6/5] git-diff.txt: banish the <commit>..<commit> form Ramkumar Ramachandra
2013-04-24 18:29 ` Junio C Hamano
2013-04-24 18:33 ` Ramkumar Ramachandra
2013-04-25 11:25 ` [PATCH 0/5] Documentation/git-diff.txt improvements Ramkumar Ramachandra
2013-04-29 16:33 ` Junio C Hamano
2013-04-29 17:19 ` Ramkumar Ramachandra
2013-04-29 17:40 ` Junio C Hamano
2013-04-29 18:28 ` Ramkumar Ramachandra
2013-04-29 18:46 ` 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=20130424203732.GJ29963@google.com \
--to=jrnieder@gmail.com \
--cc=artagnon@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.