# The way to make work with git a bit more easier.

3 messages from 2011-03-19 to 2011-03-21. Participants: Alexey Homyakov, Nguyen Thai Ngoc Duy, Michael J Gruber.
Thread: https://gitlist.dev/t/26788

## Alexey Homyakov, 2011-03-19 12:20

Subject: The way to make work with git a bit more easier.
Message-ID: <AANLkTimrYGXQ_wWrj-Sr3UB9YbddW613oebddUoLat7b@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimrYGXQ_wWrj-Sr3UB9YbddW613oebddUoLat7b%40mail.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
................


It's easy to make git understand all possibly comments definitions.

Thanx.

-- 
С уважением,
Алексей.

```

## Nguyen Thai Ngoc Duy, 2011-03-19 12:30

Subject: Re: The way to make work with git a bit more easier.
Message-ID: <AANLkTik3_tE6DdCQkS5ssqB9OBBNSvj5KO3WK=0Vj4YG@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTik3_tE6DdCQkS5ssqB9OBBNSvj5KO3WK%3D0Vj4YG%40mail.gmail.com
In-Reply-To: <AANLkTimrYGXQ_wWrj-Sr3UB9YbddW613oebddUoLat7b@mail.gmail.com>

```
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.
-- 
Duy

```

## Michael J Gruber, 2011-03-21 12:33

Subject: Re: The way to make work with git a bit more easier.
Message-ID: <4D87459A.1040307@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4D87459A.1040307%40drmicha.warpmail.net
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

```
