From: Anders Melchiorsen <mail@cup.kalibalik.dk>
To: Erik Hahn <erik_hahn@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Excluding files from git-diff
Date: Sat, 18 Oct 2008 01:38:55 +0200 [thread overview]
Message-ID: <48F9220F.5060009@cup.kalibalik.dk> (raw)
In-Reply-To: <20081017145313.GA23471@eriks>
Erik Hahn wrote:
> I'm currently working on a script whose developer does not use
> git. Hence, when I mail him the patch, I don't want to include the
> .gitignore file. Is it possible to exclude a file from git-diff (except
> not adding it to git, of course?)
>
I don't think that this is what you are asking about, but it's a neat
trick anyway :-).
To permanently exclude files from git diff, set up a custom diff driver
in ~/.gitconfig:
[diff "nodiff"]
command = /bin/true
and then mention the files that should use this driver in
.git/info/attributes:
.gitignore diff=nodiff
prev parent reply other threads:[~2008-10-17 23:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 14:53 Excluding files from git-diff Erik Hahn
2008-10-17 15:08 ` Raphael Zimmerer
2008-10-17 15:08 ` Johannes Schindelin
2008-10-17 15:18 ` Michael J Gruber
2008-10-17 16:30 ` Christian Jaeger
2008-10-17 17:33 ` Eric Raible
2008-10-18 3:50 ` Christian Jaeger
2008-10-18 15:59 ` Jeff King
2008-10-18 16:08 ` Christian Jaeger
2008-10-18 16:14 ` Jeff King
2008-10-18 16:58 ` Jeff King
2008-10-17 23:38 ` Anders Melchiorsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48F9220F.5060009@cup.kalibalik.dk \
--to=mail@cup.kalibalik.dk \
--cc=erik_hahn@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.