git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alberto Fanjul Alonso <albertofanjul@gmail.com>
To: git@vger.kernel.org
Subject: Fwd: Add git ignore as builtin
Date: Sat, 15 Nov 2014 12:22:05 +0100	[thread overview]
Message-ID: <CA+mQAOU_UnPuSk0f9d1sUnxBj8M4zEX7bwa4Dw_z_PJV3Lp4LA@mail.gmail.com> (raw)
In-Reply-To: <CA+mQAOXPZSv2B8tVfC=4eJ7X_2j8Di4BkuE=z43=U2+VNpdQQg@mail.gmail.com>

After seeing -e option in git config (open config files in editor)

http://git-scm.com/docs/git-config

I decide it's time to propose to incorporate an alias really useful to me

git ignore

The repo is on https://github.com/albfan/git-ignore

basically:

git ignore <whatever> adds <whatever> to .git/info/exclude

and git ignore -e starts an editor to tweak your excludes

by default it operates con exclude file, but it can also work with
.gitignore using -i option

I find it invaluable for IDE project files, TODOs, test files...

       reply	other threads:[~2014-11-15 11:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA+mQAOXPZSv2B8tVfC=4eJ7X_2j8Di4BkuE=z43=U2+VNpdQQg@mail.gmail.com>
2014-11-15 11:22 ` Alberto Fanjul Alonso [this message]
2014-11-17  0:12   ` Fwd: Add git ignore as builtin Ryan Jacobs
2014-11-17 20:59     ` Jeff King
2014-11-17 21:38       ` Junio C Hamano
2014-11-23 19:25         ` Javier Domingo Cansino

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=CA+mQAOU_UnPuSk0f9d1sUnxBj8M4zEX7bwa4Dw_z_PJV3Lp4LA@mail.gmail.com \
    --to=albertofanjul@gmail.com \
    --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).