From: Raphael Zimmerer <killekulla@rdrz.de>
To: Erik Hahn <erik_hahn@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Excluding files from git-diff
Date: Fri, 17 Oct 2008 17:08:51 +0200 [thread overview]
Message-ID: <20081017150851.GA20860@rdrz.de> (raw)
In-Reply-To: <20081017145313.GA23471@eriks>
On Fri, Oct 17, 2008 at 04:53:13PM +0200, 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?)
Just add the content of .gitignore to .git/info/exclude, and remove
.gitignore from the repository.
Raphael
next prev parent reply other threads:[~2008-10-17 15:11 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 [this message]
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
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=20081017150851.GA20860@rdrz.de \
--to=killekulla@rdrz.de \
--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 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).