* How stop tracking a file?
@ 2005-05-22 16:48 jeff millar
2005-05-22 17:10 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: jeff millar @ 2005-05-22 16:48 UTC (permalink / raw)
To: git
cg-rm does two things
rm -f "$@"
git-update-cache --remove -- "$@"
Does cg support a way to stop tracking a file without deleting it?
The idea was to cg-init an entire directory (such as /etc/ or some
existing software project) and then selectivly stop tracking files,
such as *.o, selected binaries, ld.so.cache, etc. as they turned up.
thanks,
jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How stop tracking a file?
2005-05-22 16:48 How stop tracking a file? jeff millar
@ 2005-05-22 17:10 ` Junio C Hamano
2005-05-22 18:29 ` jeff millar
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2005-05-22 17:10 UTC (permalink / raw)
To: jeff millar; +Cc: git
>>>>> "jm" == jeff millar <wa1hco@adelphia.net> writes:
jm> cg-rm does two things
jm> rm -f "$@"
jm> git-update-cache --remove -- "$@"
I do not do Porcelain, but something along the following lines
should work:
for path
do
git-update-cache --force-remove "$path"
done
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How stop tracking a file?
2005-05-22 17:10 ` Junio C Hamano
@ 2005-05-22 18:29 ` jeff millar
2005-06-04 1:24 ` Petr Baudis
0 siblings, 1 reply; 4+ messages in thread
From: jeff millar @ 2005-05-22 18:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano wrote:
> jm> cg-rm does two things
> jm> rm -f "$@"
> jm> git-update-cache --remove -- "$@"
>
>I do not do Porcelain, but something along the following lines
>should work:
>
> for path
> do
> git-update-cache --force-remove "$path"
> done
>
Seems a bit more difficult...
[jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o
[jeff@Desk gsmc-1.1]$ cg-diff
Index: main.o
===================================================================
Binary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o
(mode:100644) and /dev/null (tree:uncommitted) differ
[jeff@Desk gsmc-1.1]$ cg-commit
Refusing to make an empty commit - the tree was not modified
since the previous commit. If you really want to make the
commit, do: commit-tree `tree-id` -p `parent-id`
A picky porcelain problem?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How stop tracking a file?
2005-05-22 18:29 ` jeff millar
@ 2005-06-04 1:24 ` Petr Baudis
0 siblings, 0 replies; 4+ messages in thread
From: Petr Baudis @ 2005-06-04 1:24 UTC (permalink / raw)
To: jeff millar; +Cc: Junio C Hamano, git
Dear diary, on Sun, May 22, 2005 at 08:29:25PM CEST, I got a letter
where jeff millar <wa1hco@adelphia.net> told me that...
> Junio C Hamano wrote:
>
> > jm> cg-rm does two things
> > jm> rm -f "$@"
> > jm> git-update-cache --remove -- "$@"
> >
> >I do not do Porcelain, but something along the following lines
> >should work:
> >
> > for path
> > do
> > git-update-cache --force-remove "$path"
> > done
> >
> Seems a bit more difficult...
> [jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o
> [jeff@Desk gsmc-1.1]$ cg-diff
> Index: main.o
> ===================================================================
> Binary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o
> (mode:100644) and /dev/null (tree:uncommitted) differ
> [jeff@Desk gsmc-1.1]$ cg-commit
> Refusing to make an empty commit - the tree was not modified
> since the previous commit. If you really want to make the
> commit, do: commit-tree `tree-id` -p `parent-id`
> A picky porcelain problem?
Ok, it took some non-trivial changes to cg-commit (this part was a quick
hack before, now it looks a lot better), but cg-rm -n should now do what
you want.
Thanks for the suggestion,
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-04 1:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-22 16:48 How stop tracking a file? jeff millar
2005-05-22 17:10 ` Junio C Hamano
2005-05-22 18:29 ` jeff millar
2005-06-04 1:24 ` Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox