wrapper: move odb_* to environment.c
commit463db9b104b5db7d574ce4c5ede8caaa6d02ff4c
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 6 Nov 2010 11:45:38 +0000 (6 06:45 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2010 19:03:38 +0000 (10 11:03 -0800)
tree1be5e1190a0bd603e612286e63c36cd1d105841c
parent58ecbd5edeb2357c313db75bc49d45981a2061b7
wrapper: move odb_* to environment.c

The odb_mkstemp and odb_pack_keep functions open files under the
$GIT_OBJECT_DIRECTORY directory.  This requires access to the git
configuration which very simple programs do not need.

Move these functions to environment.o, closer to their dependencies.
This should make it easier for programs to link to wrapper.o without
linking to environment.o.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
git-compat-util.h
wrapper.c