Re: [PATCH] Document git-runstatus

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sean <seanlkml@...>
Cc: Rene Scharfe <rene.scharfe@...>, Petr Baudis <pasky@...>, Git Mailing List <git@...>, Johannes Schindelin <Johannes.Schindelin@...>, Jeff King <peff@...>
Date: Saturday, November 18, 2006 - 2:49 pm

Sean <seanlkml@sympatico.ca> writes:


You should treat git-runstatus the same way as you would treat
"git-merge-recursive".  It strictly is a helper and you never
use it by itself.

It takes the parts that are too cumbersome to be enhanced in
shell script from the old git-status script, and rewrites it in
C.

"git-status $args" is to give a preview of the commit that would
be made with "git-commit $args" (where $args can be things like
-a, $paths...).  The part that still remain as script in
git-commit and git-status performs the gory details of index
preparation for the next commit, and tells git-runstatus to show
the status of that index and the working tree relative to the
current HEAD.

Most notably, running "git-update-index --refresh" part is still
done in the script part that calls runstatus, so in a
cache-dirty but otherwise clean tree, running git-runstatus and
then git-status (without any parameters) in this order would
show cache dirty paths in the former but not in the latter (nor
after the latter runs once, since it calls --refresh).
 


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Document git-runstatus, Petr Baudis, (Sat Nov 18, 10:35 am)
Re: [PATCH] Document git-runstatus, Rene Scharfe, (Sat Nov 18, 11:04 am)
Re: [PATCH] Document git-runstatus, Sean, (Sat Nov 18, 12:04 pm)
Re: [PATCH] Document git-runstatus, Junio C Hamano, (Sat Nov 18, 2:49 pm)
Re: [PATCH] Document git-runstatus, A Large Angry SCM, (Sat Nov 18, 2:20 pm)
Re: [PATCH] Document git-runstatus, Sean, (Sat Nov 18, 2:49 pm)