Re: Init on push

Previous thread: [RFC] Configuring (future) committags support in gitweb by Jakub Narebski on Saturday, November 8, 2008 - 3:07 pm. (17 messages)

Next thread: [PATCH] git send-email: edit recipient addresses with the --compose flag by Ian Hilt on Sunday, November 9, 2008 - 8:59 am. (17 messages)
To: <git@...>
Date: Saturday, November 8, 2008 - 4:06 pm

Shouldn't it be "-C $there" (like make and tar)?

--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

--

To: Jakub Narebski <jnareb@...>
Cc: <git@...>
Date: Saturday, November 8, 2008 - 4:08 pm

I agree with that. It's pretty much a standard for quite a few "command line
people", insofar as I always look for such an option in case I want to know
whether a command has the ability to chdir() to a different directory than
the current one :p

--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris
--

To: Francis Galiegue <fg@...>
Cc: Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 4:38 pm

In this particular case, it is not "chdir() before starting" but "mkdir
and then chdir() into it". Using -C would be counterproductive.
--

To: Junio C Hamano <gitster@...>
Cc: Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 4:44 pm

I have missed the mkdir part, but then here this is mkdir _-p_...

I mean, what is the cost of mkdir -p the/dir and then git init -C the/dir? I
don't think it's that good an idea to have git create the directory in this
case...

Think of what would happen if you git -D a/b, and a is a symlink to, where,
somewhere (doesn't exist, exists but if you touch it you're {in trouble,good
for jail time, whatever}).

I personnaly think that the directory creation SHOULD be created to the
commands that are meant for it, just as git handles dir creation in its own
space (a git repository).

--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris
--

To: Junio C Hamano <gitster@...>
Cc: Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 4:50 pm

Le Saturday 08 November 2008 21:44:25 Francis Galiegue, vous avez écrit :

I meant "handled", sorry.

--
fge
--

To: Francis Galiegue <fg@...>
Cc: Robin Rosenberg <robin.rosenberg.lists@...>, Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 8:13 pm

Why have we ended up losing the most important Cc: to the original patch
submitter who asked if the idea of his patch is sound?

--

To: Junio C Hamano <gitster@...>
Cc: Robin Rosenberg <robin.rosenberg.lists@...>, Jakub Narebski <jnareb@...>, <git@...>
Date: Saturday, November 8, 2008 - 9:41 pm

Sorry for that. I blindly "replied to all", not seeing that the reply chain
has been "broken" along the way.

--
fge
--

Previous thread: [RFC] Configuring (future) committags support in gitweb by Jakub Narebski on Saturday, November 8, 2008 - 3:07 pm. (17 messages)

Next thread: [PATCH] git send-email: edit recipient addresses with the --compose flag by Ian Hilt on Sunday, November 9, 2008 - 8:59 am. (17 messages)