Re: Dokumenting api-paths.txt

2013-08-22 Thread Junio C Hamano
Stefan Beller writes: >> git_path is for resolving paths within GIT_DIR, such as >> git_path("config") and git_path("COMMIT_EDITMSG"). >> >> Jonathan > > Before we're doing double work, I just wrote down my understanding > so far. Feel free to tweak it, or remove obvious parts. > path API > ===

Re: Dokumenting api-paths.txt

2013-08-21 Thread Stefan Beller
On 08/20/2013 11:59 PM, Jonathan Nieder wrote: > Stefan Beller wrote: On 08/20/2013 03:31 PM, Johannes Sixt wrote: > Stefan Beller wrote: > >> +packdir = mkpathdup("%s/pack", get_object_directory()); >> +packtmp = mkpathdup("%s/.tmp-%d-pack", packdir, getpid()); >

Re: Dokumenting api-paths.txt

2013-08-20 Thread Jonathan Nieder
Stefan Beller wrote: >>> On 08/20/2013 03:31 PM, Johannes Sixt wrote: Stefan Beller wrote: > +packdir = mkpathdup("%s/pack", get_object_directory()); > +packtmp = mkpathdup("%s/.tmp-%d-pack", packdir, getpid()); Should this not be packdir = xstrdup(git_