Gerrit Pape wrote:
On Wed, Mar 26, 2008 at 12:06:02PM +0000, Gerrit Pape wrote:
On Wed, Mar 26, 2008 at 11:26:39AM +0200, Eddy Petri??or wrote:
Gerrit Pape wrote:
On Mon, Mar 17, 2008 at 12:13:12PM +0200, Eddy Petri??or wrote:
There are very frequent scenarios when is desirable to limit the status command just to a directory or a set of files in the repo.

I would have expected that "git status ." to show me only the status for the files under the current directory under any circumstances, not the whole repo with filenames relative to the current directory. What is the purpose of such behaviour?
Hi Eddy, IIRC there has been some discussion about this in the git
mailing list recently, within the last months.  I currently am not sure
about the outcome.
I tried seaching for this, but I couldn't find it. Any help is appreciated (even a forwarding of the BR).
Does this help?:
 http://thread.gmane.org/gmane.comp.version-control.git/72527

Hi Eddy, there's been another thread about the 'git status' behavior,
see
 http://thread.gmane.org/gmane.comp.version-control.git/79366

Does that clear it up?, I'd like to close this report.

Yes, it clear it up, but still, as Sverre Rabbelier points out, unknown items are NOT visible in the git diff command, whereas in the git status command, they are. So from my PoV, this request is still untackled, since untracked objects are not visible at all in the proposed alternative.



1 [EMAIL PROTECTED] ~/tmp/andreea $ git diff --name-status   HEAD
M       andeea.doc
0 [EMAIL PROTECTED] ~/tmp/andreea $ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#
#       modified:   andeea.doc
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       aaa/
#       teaser_aragorn_1280.jpg
no changes added to commit (use "git add" and/or "git commit -a")
1 [EMAIL PROTECTED] ~/tmp/andreea $ cd aaa/
/home/eddy/tmp/andreea/aaa
0 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ git status .
error: pathspec '' did not match any file(s) known to git.
1 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ git diff --name-status   HEAD .
0 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ git add file
0 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ git diff --name-status   HEAD .
A       aaa/file
0 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ git status .
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       new file:   file
#
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#
#       modified:   ../andeea.doc
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       ../teaser_aragorn_1280.jpg
0 [EMAIL PROTECTED] ~/tmp/andreea/aaa $ cd ..
0 [EMAIL PROTECTED] ~/tmp/andreea $ git status .
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       new file:   aaa/file
#       modified:   andeea.doc
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       teaser_aragorn_1280.jpg
0 [EMAIL PROTECTED] ~/tmp/andreea $ git diff --name-status   HEAD
A       aaa/file
M       andeea.doc


--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to