]> git.ipfire.org Git - thirdparty/git.git/commit
path helpers: move git_mkstemp* to wrapper.c
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 6 Nov 2010 11:46:31 +0000 (06:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2010 19:04:26 +0000 (11:04 -0800)
commit33f239365cce2682a1faac0d5670d684aa1981ad
tree107194f313fead979916489bab2f702a7f21580c
parent463db9b104b5db7d574ce4c5ede8caaa6d02ff4c
path helpers: move git_mkstemp* to wrapper.c

git_mkstemp_mode and related functions do not require access to
specialized git machinery, unlike some other functions from
path.c (like set_shared_perm()).  Move them to wrapper.c where
the wrapper xmkstemp_mode is defined.

This eliminates a dependency of wrapper.o on environment.o via
path.o.  With typical linkers (e.g., gcc), that dependency makes
programs that use functions from wrapper.o and not environment.o
or path.o larger than they need to be.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c
wrapper.c