author | Jonathan Nieder <jrnieder@gmail.com> | |
Sat, 6 Nov 2010 11:45:38 +0000 (06:45 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Nov 2010 19:03:38 +0000 (11:03 -0800) | ||
commit | 463db9b104b5db7d574ce4c5ede8caaa6d02ff4c | |
tree | 1be5e1190a0bd603e612286e63c36cd1d105841c | tree | snapshot |
parent | 58ecbd5edeb2357c313db75bc49d45981a2061b7 | commit | diff |
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>
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 | diff | blob | history | |
git-compat-util.h | diff | blob | history | |
wrapper.c | diff | blob | history |