login
Header Space

 
 

Re: MinGW port - initial work uploaded

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Sixt <johannes.sixt@...>
Cc: <git@...>
Date: Friday, January 19, 2007 - 11:31 pm

Johannes Sixt <johannes.sixt@telecom.at> wrote:

Can I make a few suggestions?

Base your branch on Junio's 'master', not 'next'.  This looks like
its going to be a fairly long-running topic with a large number
of commits.  It will be easier to convince Junio to pull the topic
in if its based solely on 'master' than if its based on 'next'.

I made the mistake of building my git-fast-import topic on top of
'next' back in Aug. 2006.  Its still going and has not yet merged
into git.git.  I finally went through the pain of rebasing it onto
'master' to make the merge easier for Junio post 1.5.0.  Of course
gfi is also less intrusive than this topic will be.


The other is maybe try to avoid:

	#ifndef __MINGW32__
	...
	#endif

instead try to use something like:

	git-compat-util:
	#ifdef __MINGW32__
	#define is_mingw32 1
	#else
	#define is_mingw32 0
	#endif

	everywhere else:
	if (is_mingw32) {
	}

This way the code within the block can be syntax checked, etc. on
non-MinGW platforms but will be removed by the compiler on those
non-MinGW systems.  I just went through trying to do a #ifndef thing
for Windows (1510fea7 in git.git, aka the NO_FAST_WORKING_DIRECTORY
flag) and Junio rightly rejected my first attempt which used #ifndef,
and instead used something like the above.
 
-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
MinGW port - initial work uploaded, Johannes Sixt, (Fri Jan 19, 4:48 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Mon Jan 22, 9:06 am)
Re: MinGW port - initial work uploaded, Johannes Sixt, (Mon Jan 22, 4:27 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 7:32 am)
Re: MinGW port - initial work uploaded, Nguyen Thai Ngoc Duy, (Tue Jan 23, 9:36 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 10:15 am)
Re: MinGW port - initial work uploaded, Andy Parkins, (Tue Jan 23, 9:22 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 10:21 am)
Re: MinGW port - initial work uploaded, Andy Parkins, (Tue Jan 23, 11:06 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 11:20 am)
Re: MinGW port - initial work uploaded, Andy Parkins, (Tue Jan 23, 12:24 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 12:37 pm)
Re: MinGW port - initial work uploaded, Linus Torvalds, (Tue Jan 23, 1:02 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 1:07 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Tue Jan 23, 9:12 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 10:18 am)
Re: MinGW port - initial work uploaded, Christian MICHON, (Tue Jan 23, 2:55 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 3:18 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 3:28 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Tue Jan 23, 4:31 am)
Re: MinGW port - initial work uploaded, Christian MICHON, (Mon Jan 22, 6:20 pm)
Re: MinGW port - initial work uploaded, Linus Torvalds, (Mon Jan 22, 12:39 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 7:25 am)
Re: MinGW port - initial work uploaded, Linus Torvalds, (Tue Jan 23, 11:37 am)
Re: MinGW port - initial work uploaded, Nguyen Thai Ngoc Duy, (Wed Jan 24, 3:12 am)
Re: MinGW port - initial work uploaded, Linus Torvalds, (Wed Jan 24, 12:42 pm)
Re: MinGW port - initial work uploaded, H. Peter Anvin, (Thu Feb 8, 1:18 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Wed Jan 24, 5:08 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Wed Jan 24, 6:17 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 11:49 am)
Re: MinGW port - initial work uploaded, Alex Riesen, (Tue Jan 23, 11:45 am)
Re: MinGW port - initial work uploaded, Shawn O. Pearce, (Tue Jan 23, 11:53 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 11:52 am)
Re: MinGW port - initial work uploaded, Alex Riesen, (Tue Jan 23, 11:56 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 12:00 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Tue Jan 23, 9:08 am)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Tue Jan 23, 10:17 am)
Re: MinGW port - initial work uploaded, Christian MICHON, (Mon Jan 22, 6:25 pm)
Re: MinGW port - initial work uploaded, H. Peter Anvin, (Thu Feb 8, 4:17 am)
Re: MinGW port - initial work uploaded, Christian MICHON, (Thu Feb 8, 10:06 am)
Re: MinGW port - initial work uploaded, H. Peter Anvin, (Thu Feb 8, 1:22 pm)
Re: MinGW port - initial work uploaded, Shawn O. Pearce, (Fri Jan 19, 11:31 pm)
Re: MinGW port - initial work uploaded, Johannes Sixt, (Sat Jan 20, 4:05 pm)
Re: MinGW port - initial work uploaded, Christian MICHON, (Sat Jan 20, 4:21 pm)
Re: MinGW port - initial work uploaded, Johannes Schindelin, (Sat Jan 20, 5:24 am)
Re: MinGW port - initial work uploaded, Christian MICHON, (Fri Jan 19, 6:47 pm)
Re: MinGW port - initial work uploaded, Michael, (Fri Jan 19, 7:53 pm)
speck-geostationary