Skip to contentSkip to conversation

cg-clean, cg-status improvements

DISCUSSION Pavel Roskin 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello, Petr!

Is cogito 0.17 going to require git 1.2.0? If so, I'm ready to submit a patch for cg-clean that would use the fixed functionality of git regarding ignores when run in subdirectories (commit 701ca744e386c2429ca44072ea987bbb4bdac7ce). I think cg-status can be improved as well.

If cogito 0.17 is not going to require git 1.2.0, I'm ready to add a temporary workaround for older versions of git.

The problem with cg-clean right now is that it removes contents of untracked directories by default, which makes it pointless to keep the directories. I submitted a patch for that, but it it wasn't noticed. Anyway, I can do it better now.

Signature · 2 lines
Regards,
Pavel Roskin
#1 lore raw

Hello,

Dear diary, on Tue, Feb 14, 2006 at 04:28:19PM CET, I got a letter where Pavel Roskin <[email protected]> said that...

Quoted 10 lines

Hello, Petr!

Is cogito 0.17 going to require git 1.2.0? If so, I'm ready to submit a patch for cg-clean that would use the fixed functionality of git regarding ignores when run in subdirectories (commit 701ca744e386c2429ca44072ea987bbb4bdac7ce). I think cg-status can be improved as well.

If cogito 0.17 is not going to require git 1.2.0, I'm ready to add a temporary workaround for older versions of git.

I didn't plan to require git 1.2.0 with 0.17, so it would be better if
you could do the workaround. But if the workaround means significant hassle, it's no biggie if git 1.2.0 will be required.

Quoted 4 lines

The problem with cg-clean right now is that it removes contents of untracked directories by default, which makes it pointless to keep the directories. I submitted a patch for that, but it it wasn't noticed. Anyway, I can do it better now.

Hmm, strange, I really did not notice the patch. Well, I'm certainly
interested.

Signature · 5 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
#2 lore raw
Quoted 3 lines · Petr Baudis

I didn't plan to require git 1.2.0 with 0.17, so it would be better if
you could do the workaround. But if the workaround means significant hassle, it's no biggie if git 1.2.0 will be required.

It turns out a proper workaround can only be implemented in cg-Xlib, not in cg-clean. It's a bit hairy for my taste (a bash guru could write it better, I believe), but it's a compact blob of code that can be easily removed at any time.

The patches have been sent by StGIT.

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw

Dear diary, on Tue, Feb 14, 2006 at 07:17:12PM CET, I got a letter where Pavel Roskin <[email protected]> said that...

Quoted 9 lines · Petr Baudis
Quoted 3 lines

I didn't plan to require git 1.2.0 with 0.17, so it would be better if
you could do the workaround. But if the workaround means significant hassle, it's no biggie if git 1.2.0 will be required.

It turns out a proper workaround can only be implemented in cg-Xlib, not in cg-clean. It's a bit hairy for my taste (a bash guru could write it better, I believe), but it's a compact blob of code that can be easily removed at any time.

Wow, how you managed to simplify and shrink cg-clean sounds really impressive! :)

Thanks, both applied and pushed out.

Signature · 5 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams