git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git add' option to non-interactively stage working tree changes
@ 2011-01-07 18:56 Hrvoje Nikšić
  2011-01-07 19:52 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Hrvoje Nikšić @ 2011-01-07 18:56 UTC (permalink / raw)
  To: git

Is there a way to non-interactively instruct git to stage all changes
in the working tree, specifically those that would be detected by "git
add -p" or "git commit -a"?

One can use "git add" for this purpose, but it is necessary to specify
the root, and with the unpleasant side effect of adding untracked
files. "git add -u" avoids the file addition, but root still has to be
spelled out. "git add -p" does exactly the right thing, but requires
interaction. I would like an automated --yes-to-all version of "git
add -p".

Specifying the root may seem innocuous, but it is inconsistent with
"git diff" and "git commit [-a]", which don't care where in the tree
you are.

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

end of thread, other threads:[~2011-01-07 23:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 18:56 'git add' option to non-interactively stage working tree changes Hrvoje Nikšić
2011-01-07 19:52 ` Andreas Schwab
2011-01-07 20:03   ` Hrvoje Nikšić
2011-01-07 20:44     ` Junio C Hamano
2011-01-07 23:50       ` Jakub Narebski

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