git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how do I ignore a directory for diff
@ 2015-04-05 11:31 LongChair .
  2015-04-05 12:17 ` John Keeping
  0 siblings, 1 reply; 4+ messages in thread
From: LongChair . @ 2015-04-05 11:31 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

I have been looking into ignoring a subdirectory of my tree for diffing with upstream.
I'll explain the situation below :

My tree is a fork of an upstream repo.
There is a specific directory in my tree lets call it foo/bar that i would like to ignore for diff. This directory includes only files that i added to my repo and is therefore irrelevant for diffing (i know all files in there have been added and are not in upstream). Having there in the diff is just making a lot of files to appear and that is confusing to see what is changed from upstream.

I have read the docs and found a way mentioning that i should add a line to .gitattributes with :
foo/bar/* -diff

But this still lists the files in there when i'm diffing.

Is there any way to achieve this ? i cant find any clear explanation in the docs.

Any help would be greatly appreciated :)

Lionel.

 		 	   		  

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

end of thread, other threads:[~2015-04-05 14:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-05 11:31 how do I ignore a directory for diff LongChair .
2015-04-05 12:17 ` John Keeping
2015-04-05 14:19   ` Lionel CHAZALLON
2015-04-05 14:58     ` John Keeping

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