Re: Why doesn't git commit -a track new files

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: Why doesn't git commit -a track new files

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:50:39

Michael J Gruber [off-list ref] writes:
Why does it not exist? Because you should at least
"git add -A && git status && behappy && git commit".
There are alternatives like

git status && behappy && git commit -A

or

git commit -A && look at status $EDITOR && behapy && save
Also, "-A" supports a very "un-gitty" way of using git. This makes it
unlikely that someone cares to implement it...
I guess that's it. It's not usefull to most Git developers, hence nobody
cared to implement it. But IIRC the switch "add -A" was chosen partly
because -A didn't exist for commit, hence this leaves room for commit
-A.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: Why doesn't git commit -a track new files

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:50:39

Matthieu Moy venit, vidit, dixit 24.02.2011 17:04:
Michael J Gruber [off-list ref] writes:
quoted
Why does it not exist? Because you should at least
"git add -A && git status && behappy && git commit".
There are alternatives like

git status && behappy && git commit -A
That may not give the full picture of untracked stuff in subdirs.
or

git commit -A && look at status $EDITOR && behapy && save
Yes, I even mentioned that, but you cut it. Bad bad boy! ;)
quoted
Also, "-A" supports a very "un-gitty" way of using git. This makes it
unlikely that someone cares to implement it...
I guess that's it. It's not usefull to most Git developers, hence nobody
cared to implement it. But IIRC the switch "add -A" was chosen partly
because -A didn't exist for commit, hence this leaves room for commit
Yes.

So, we have one more volunteer for the plan just laid out, right?

Michael

Re: Why doesn't git commit -a track new files

From: Marco <hidden>
Date: 2016-06-15 22:50:39

On 2011-02-24 Michael J Gruber [off-list ref] wrote:
quoted
git status && behappy && git commit -A
That may not give the full picture of untracked stuff in subdirs.
May I ask why not? AFAIK git status outputs staged and untracked stuff.
quoted
git commit -A && look at status $EDITOR && behapy && save
Yes, I even mentioned that, but you cut it. Bad bad boy! ;)
quoted
quoted
Also, "-A" supports a very "un-gitty" way of using git. This makes it
unlikely that someone cares to implement it...
I think it *can* be used in an appropriate manner.
BTW: Why isn't commit -a »un-gitty«?


Marco
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help