libgit-thin: Update QUESTIONS file
[git/libgit-gsoc.git] / libgit-thin / FAQ
blobfa99ec0cd79219c33aa81363699ae18670ebe8bb
1 1. libgit-thin uses dynamically allocated memory heavily, this is really
2    annoying, because I have to remember to free the memory and because I
3    can't do automatic allocation in the stack. Can't you change that?
5    No. It was a consciously design choice, which has the following
6    benefits:
8         o If we change the structure layout, you don't have to recompile
9           your program. Okay, we could use padding, but it's ugly and
10           error-prone (from the library implementation point of view)
12         o It provides better encapsulation, since you can't access the
13           structure's members from your program
14           (see http://en.wikipedia.org/wiki/Information_hiding)
16 2. Why does libgit-thin's C files uses the 'lt' prefix?
18    Because we need a way to distinguish our files from GIT's. 'lt'
19    stands for 'Libgit-Thin'.