From: Michael J Gruber <git@drmicha.warpmail.net>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Cc: Alexey Homyakov <alexey.homyakov@gmail.com>, git@vger.kernel.org
Subject: Re: The way to make work with git a bit more easier.
Date: Mon, 21 Mar 2011 13:33:30 +0100 [thread overview]
Message-ID: <4D87459A.1040307@drmicha.warpmail.net> (raw)
In-Reply-To: <AANLkTik3_tE6DdCQkS5ssqB9OBBNSvj5KO3WK=0Vj4YG@mail.gmail.com>
Nguyen Thai Ngoc Duy venit, vidit, dixit 19.03.2011 13:30:
> 2011/3/19 Alexey Homyakov <alexey.homyakov@gmail.com>:
>> Hi, guys, i'm enjoy to work with git, but think it's possibly to make
>> one of the operation more easier.
>> What do you mean about mark a parts of files which don't need to be
>> tracked by git once instead using interactive adding each time?
>> For example using statement in comments like this:
>>
>> ................
>> tracked part
>> ...............
>> //@git off
>> ...............
>> untracked part
>> ...............
>> //@git on
>> ................
>> track again
>> ................
>
> That's interesting, provided that this is only enabled by command
> argument (i.e. never activated by default). Another option is to make
> "git add -p" only show chunks that match a pattern.
This can be done using a "clean" filter already. For example, for
tracking my global git configuration, I use
[filter "dotgitk"]
clean = fgrep -v geometry
and specify
.gitk filter=dotgitk
for the attributes.
Cheers,
Michael
prev parent reply other threads:[~2011-03-21 12:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 12:20 The way to make work with git a bit more easier Alexey Homyakov
2011-03-19 12:30 ` Nguyen Thai Ngoc Duy
2011-03-21 12:33 ` Michael J Gruber [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=4D87459A.1040307@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=alexey.homyakov@gmail.com \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/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).