Skip to contentSkip to conversation

use only the PATH for exec'ing git commands

PATCH Scott R Parish 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

Alex Riesen, Mon, Oct 22, 2007 12:01
Scott R Parish, Mon, Oct 22, 2007 19:01:48 +0200:

Quoted 1 line

+ strbuf_addch(out, ':');

Shouldn't it break MingW32 native port?

What can i do here to better accommodate MingW32? You're right, just because the original code did it this way isn't a good excuse for me not to do it better.

sRp

#1 lore raw

Scott R Parish, Tue, Oct 23, 2007 00:12:02 +0200:

Quoted 9 lines
Quoted 5 lines

Alex Riesen, Mon, Oct 22, 2007 12:01
Scott R Parish, Mon, Oct 22, 2007 19:01:48 +0200:

Quoted 1 line

+ strbuf_addch(out, ':');

Shouldn't it break MingW32 native port?

What can i do here to better accommodate MingW32? You're right, just because the original code did it this way isn't a good excuse for me not to do it better.

someone here mentioned "higher abstractions". Maybe he meant moving the routines operating on path names and path lists out of the generic code into platform specific (like compat/). Maybe he was even going to do that himself, but I could be mistaken

#2 lore raw

Hi,

Quoted 5 lines · Alex Riesen

Scott R Parish, Tue, Oct 23, 2007 00:12:02 +0200:

Quoted 4 lines
Quoted 4 lines

Alex Riesen, Mon, Oct 22, 2007 12:01
Scott R Parish, Mon, Oct 22, 2007 19:01:48 +0200:

Quoted 1 line

+ strbuf_addch(out, ':');

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Shouldn't it break MingW32 native port?

What can i do here to better accommodate MingW32? You're right, just because the original code did it this way isn't a good excuse for me not to do it better.

someone here mentioned "higher abstractions".

That someone may well have mentioned that term, but what he meant was special case those code paths which have to be treated differently for Windows, and Windows alone.

(Yeah, I know, a response to that was that Nokia phones have drive letters, too, but that was an invalid objection to that particular statement, since Nokia phones expect the full path at any time, so I did not even bother answering to that mail. Well, in a way, I guess I just did.)

All this boils down to adding code dedicated to Windows. And I am a huge fan of the principle that you should cross bridges when you get to them, and not before (i.e. avoid over-engineering).

So my vote is: get it in as-is, us msysGit lot will cope with it in one way or another. (We already have at least one other place where ":" is used, which we have to cope with, in shell.c:do_cvs_command().)

Ciao,
Dscho

#3 lore raw
In reply to Scott R Parish
Quoted 8 lines · Scott R Parish
Quoted 4 lines

Alex Riesen, Mon, Oct 22, 2007 12:01
Scott R Parish, Mon, Oct 22, 2007 19:01:48 +0200:

Quoted 1 line

+ strbuf_addch(out, ':');

Shouldn't it break MingW32 native port?

What can i do here to better accommodate MingW32? You're right, just because the original code did it this way isn't a good excuse for me not to do it better.

Don't bother with it right now. GIT currently does not have MinGW specific code, yet.

-- Hannes