From: Olaf Klischat <olaf.klischat@gmail.com>
To: git@vger.kernel.org, olaf@sofd.de
Cc: gitster@pobox.com
Subject: [PATCH 0/2] git-add: -s flag (silently ignore files)
Date: Mon, 1 Oct 2012 09:14:58 +0200 [thread overview]
Message-ID: <1349075700-26334-1-git-send-email-olaf.klischat@gmail.com> (raw)
This adds an -s|--silent-ignore option to git-add, which causes
ignored files that were specified explicitly on the command line to be
silently ignored, rather than abandoning the command. I found this
useful for scenarios where you want to feed the file list into git add
via find or other external commands (`find .... | xargs git add'),
which you wouldn't want to carefully tune so they don't output any
ignored files. git ls-files doesn't have find's filtering
capabilities, and using it in place of find would kind of violate "one
job one tool" anyway. I'm not really a git guru, so maybe I'm missing
something, and I'm unsure how useful this new option is for a general
audience. OTOH the patch is trivial. Check it out.
The update applies on top of "master" (261b5119).
Olaf Klischat (2):
git-add: -s flag added (silently ignore files)
git-add: -s flag: documentation added
Documentation/git-add.txt | 15 +++++++++++----
builtin/add.c | 14 +++++++++++---
t/t3700-add.sh | 17 ++++++++++++++++-
3 files changed, 38 insertions(+), 8 deletions(-)
--
1.7.10.4
next reply other threads:[~2012-10-01 7:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-01 7:14 Olaf Klischat [this message]
2012-10-01 7:14 ` [PATCH 1/2] git-add: -s flag added (silently ignore files) Olaf Klischat
2012-10-01 17:59 ` Junio C Hamano
2012-10-01 18:04 ` Matthieu Moy
2012-10-01 7:15 ` [PATCH 2/2] git-add: -s flag: documentation added Olaf Klischat
2012-10-01 18:32 ` [PATCH 0/2] git-add: -s flag (silently ignore files) Junio C Hamano
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=1349075700-26334-1-git-send-email-olaf.klischat@gmail.com \
--to=olaf.klischat@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=olaf@sofd.de \
/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.