Re: [git-users] Can I limit the set of files that git checks to see if they were modified?

2018-03-07 Thread Konstantin Khomoutov
On Tue, Mar 06, 2018 at 10:41:12AM -0800, Duane Knesek wrote:

> Say I have a huge source tree.  And I know that only files X, Y, and Z have 
> changed.  Is there a way (through a plug-in or otherwise) for me to tell 
> git to ignore every other file when I do a status, commit, etc.?  

Yes.
Read the git-update-index manual page about the "--assume-unchanged"
option supported by that command.

Searching the 'net for the git+assume+unchanged should have you covered with
tutorials.

Be sure to be careful with this facility though.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Can I limit the set of files that git checks to see if they were modified?

2018-03-06 Thread Yubin Ruan
On Tue, Mar 06, 2018 at 10:41:12AM -0800, Duane Knesek wrote:
> Say I have a huge source tree.  And I know that only files X, Y, and Z have 
> changed.  Is there a way (through a plug-in or otherwise) for me to tell 
> git to ignore every other file when I do a status, commit, etc.?  

It seems to me that there is a universal option in Git which allows you to
check only some files, e.g.,

git status -- path/to/files

That is, by appending a "-- path/to/files" at the end.

Yubin

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Can I limit the set of files that git checks to see if they were modified?

2018-03-06 Thread Duane Knesek
Say I have a huge source tree.  And I know that only files X, Y, and Z have 
changed.  Is there a way (through a plug-in or otherwise) for me to tell 
git to ignore every other file when I do a status, commit, etc.?  

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.