git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The way to make work with git a bit more easier.
@ 2011-03-19 12:20 Alexey Homyakov
  2011-03-19 12:30 ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Homyakov @ 2011-03-19 12:20 UTC (permalink / raw)
  To: git

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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The way to make work with git a bit more easier.
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2011-03-19 12:30 UTC (permalink / raw)
  To: Alexey Homyakov; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The way to make work with git a bit more easier.
  2011-03-19 12:30 ` Nguyen Thai Ngoc Duy
@ 2011-03-21 12:33   ` Michael J Gruber
  0 siblings, 0 replies; 3+ messages in thread
From: Michael J Gruber @ 2011-03-21 12:33 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: Alexey Homyakov, git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-21 12:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).