git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Feature request: Config option for --no-ignore-removal/--ignore-removal
@ 2013-09-25  4:01 Matthew Cline
  2013-10-16 21:38 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Cline @ 2013-09-25  4:01 UTC (permalink / raw)
  To: git

When I try to a plain old "git add ." when files have been
deleted/moved, I get the warning

> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'

There should be some way to put something in ~/.gitconfig to tell git to
always choose one or another.

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

* Re: Feature request: Config option for --no-ignore-removal/--ignore-removal
  2013-09-25  4:01 Feature request: Config option for --no-ignore-removal/--ignore-removal Matthew Cline
@ 2013-10-16 21:38 ` Junio C Hamano
  2013-10-17  0:31   ` Felipe Contreras
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2013-10-16 21:38 UTC (permalink / raw)
  To: Matthew Cline; +Cc: git

Matthew Cline <matt@nightrealms.com> writes:

> When I try to a plain old "git add ." when files have been
> deleted/moved, I get the warning
>
>> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'
>
> There should be some way to put something in ~/.gitconfig to tell git to
> always choose one or another.

The lack of configurability is very much deliberate.

Adding such knobs that make basic behaviour of Git different
depending on the per-user setting will make it unnecessarily harder
to run to help your coworker when she is having problems.  "git add
directory" you type in her terminal during the session to help her
could work differently from the way you are used to, if we added
such a knob.  We will not be making that mistake.

As the advice message says, "git add directory" ignores removed
files in the directory in the current version, and in Git 2.0, the
removals are recorded in the index with such a command, so that "add
directory" records the state of the directory as a whole to the
index, which is more consistent.

And that works for everybody the same way; the only way to prepare
for you not to be negatively affected by the switchover is to train
your fingers to say --all or --ignore-removal when the difference in
behaviour in the current and future versions matters, hence this
advise.

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

* Re: Feature request: Config option for --no-ignore-removal/--ignore-removal
  2013-10-16 21:38 ` Junio C Hamano
@ 2013-10-17  0:31   ` Felipe Contreras
  0 siblings, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2013-10-17  0:31 UTC (permalink / raw)
  To: Junio C Hamano, Matthew Cline; +Cc: git

Junio C Hamano wrote:
> Matthew Cline <matt@nightrealms.com> writes:
> 
> > When I try to a plain old "git add ." when files have been
> > deleted/moved, I get the warning
> >
> >> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'
> >
> > There should be some way to put something in ~/.gitconfig to tell git to
> > always choose one or another.
> 
> The lack of configurability is very much deliberate.
> 
> Adding such knobs that make basic behaviour of Git different
> depending on the per-user setting will make it unnecessarily harder
> to run to help your coworker when she is having problems.  "git add
> directory" you type in her terminal during the session to help her
> could work differently from the way you are used to, if we added
> such a knob.

That's going to happen regardless. You are assuming she is running Git v2.0,
which she might not.

-- 
Felipe Contreras

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

end of thread, other threads:[~2013-10-17  0:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25  4:01 Feature request: Config option for --no-ignore-removal/--ignore-removal Matthew Cline
2013-10-16 21:38 ` Junio C Hamano
2013-10-17  0:31   ` Felipe Contreras

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).