- 05 Jul, 2011 18 commits
-
-
Without this, hashtable.h doesn't know what uint32_t is and the compiler thinks that it's a function type. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
A bit of networking
Vicent Martí committed -
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
If the section header is the last line in the file, parse_section_header would incorrectly decide that the input had been truncated. Fix this by checking whether the actual input line is correctly formatted. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
Otherwise, the information about why there was an error gets lost. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Carlos Martín Nieto committed -
Add extra braces to avoid ambiguous if-else. Also, free() doesn't need a check.
Vicent Marti committed -
- Fails on empty name and/or email - Trims leading and trailing spaces of name and email
nulltoken committed -
Final fix for issue #278
nulltoken committed -
git_signature__parse used to be very strict about what's a well-formed signature. Add tests checking git_signature__parse can stick with "unexpected" signatures (IOW no author name and / or no email, etc). Signed-off-by: schu <schu-github@schulog.org>
schu committed -
git_signature__parse used to be very strict about what's a well-formed signature. Since git_signature__parse is used only when reading already existing signatures, we should not care about if it's a valid signature too much but rather show what we got. Reported-by: nulltoken <emeric.fermas@gmail.com> Signed-off-by: schu <schu-github@schulog.org>
schu committed -
Vicent Marti committed
-
Vicent Marti committed
-
The `stat` methods were having issues when called with a trailing slash in Windows platforms. We now use GetFileAttributes() where possible, which doesn't have this restriction.
Vicent Marti committed -
The old `git_fileops_prettify_path` has been replaced with `git_path_prettify`. This is a much simpler method that uses the OS's `realpath` call to obtain the full path for directories and resolve symlinks. The `realpath` syscall is the original POSIX call in Unix system and an emulated version under Windows using the Windows API.
Vicent Marti committed -
Cleaned up the structure of the whole OS-abstraction layer. fileops.c now contains a set of utility methods for file management used by the library. These are abstractions on top of the original POSIX calls. There's a new file called `posix.c` that contains emulations/reimplementations of all the POSIX calls the library uses. These are prefixed with `p_`. There's a specific posix file for each platform (win32 and unix). All the path-related methods have been moved from `utils.c` to `path.c` and have their own prefix.
Vicent Marti committed
-
- 03 Jul, 2011 1 commit
-
-
Vicent Marti committed
-
- 01 Jul, 2011 4 commits
-
-
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov committed -
Tim Harder committed
-
Vicent Marti committed
-
This will make libgit2 more suitable for embedding.
Vicent Marti committed
-
- 30 Jun, 2011 8 commits
-
-
Vicent Marti committed
-
The visibility attribute is a headache on many platforms like Solaris, and not even supported on Windows.
Vicent Marti committed -
The assertion in line 360 was there to check that only loose refs were being written as loose, but there are times when we need to re-write a packed reference as loose.
Vicent Marti committed -
Vicent Marti committed
-
filebuf: fix endless loop on writing buf > WRITE_BUFFER_SIZE
Vicent Martí committed -
GIT_EXTERN'd head_detached() and head_orphan()
Vicent Martí committed -
nulltoken committed
-
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov committed
-
- 29 Jun, 2011 4 commits
-
-
Hide ".git" directory on Windows upon creation of a non bare repository
Vicent Martí committed -
Directory which name starts with a dot are hidden on Linux platforms. This patch makes libgit2 behaves similarly on Windows.
nulltoken committed -
Vicent Marti committed
-
`git_reference_rename` now takes a `force` flag
Vicent Marti committed
-
- 28 Jun, 2011 5 commits
-
-
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto committed -
Vicent Marti committed
-
Vicent Marti committed
-
Vicent Marti committed
-
Vicent Marti committed
-