- 06 Jul, 2011 5 commits
-
-
`git_futils_rmdir_r`: rename, clean up. `git_reference_rename`: cleanup. Do not use 3x4096 buffers on the stack or things will get ugly very fast. We can reuse the same buffer.
Vicent Marti committed -
nulltoken committed
-
- msvc compilation warnings - not released file handle that prevents file removal
nulltoken committed -
git_futils_rmdir_recurs() shall remove the given directory and all subdirectories. This happens only if the directories are empty. Signed-off-by: schu <schu-github@schulog.org>
schu committed -
Signed-off-by: schu <schu-github@schulog.org>
schu committed
-
- 05 Jul, 2011 4 commits
-
-
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
-
- 01 Jul, 2011 1 commit
-
-
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Kirill A. Shutemov committed
-
- 29 Jun, 2011 1 commit
-
-
Directory which name starts with a dot are hidden on Linux platforms. This patch makes libgit2 behaves similarly on Windows.
nulltoken committed
-
- 28 Jun, 2011 1 commit
-
-
Vicent Marti committed
-
- 20 Jun, 2011 1 commit
-
-
Signed-off-by: schu <schu-github@schulog.org>
schu committed
-
- 18 Jun, 2011 1 commit
-
-
Vicent Marti committed
-
- 17 Jun, 2011 2 commits
-
-
Vicent Marti committed
-
Vicent Marti committed
-
- 15 Jun, 2011 2 commits
- 12 Jun, 2011 1 commit
-
-
nulltoken committed
-
- 10 Jun, 2011 2 commits
-
-
MSVC supports "inline" only in C++ code, not in C code.
Sebastian Schuberth committed -
Sebastian Schuberth committed
-
- 08 Jun, 2011 1 commit
-
-
Handle Symlinks if they can be handled in Win32. This is not even compiled. Needs review. The lstat implementation is modified from core Git. The readlink implementation is modified from PHP.
Vicent Marti committed
-
- 07 Jun, 2011 2 commits
-
-
When calling gitfo_exists() on a symbolic link, sometimes we need to simply check whether the link exists and sometimes we need to check whether the file pointed to by the symlink exists. Introduce a new function gitfo_shallow_exists that only checks if the link exists and revert gitfo_exists to the original functionality of checking whether the file pointed to by the link exists.
Jakob Pfender committed -
gitfo_exists() used to error out if the given file was a symbolic link, due to access() returning an error code. This is not expected behaviour, as gitfo_exists() should only check whether the file itself exists, not its link target if it is a symbolic link. Fix this by calling gitfo_lstat() instead, which is just a wrapper for lstat(). Also fix the same error in index_init_entry().
Jakob Pfender committed
-
- 06 Jun, 2011 1 commit
-
-
Signed-off-by: schu <schu-github@schulog.org>
schu committed
-
- 04 Jun, 2011 1 commit
-
-
It used to discard the last directory if the path didn't have a trailing slash.
Romain Geissler committed
-
- 03 Jun, 2011 5 commits
-
-
retrieve_device returns the file device for a given path (so that we can detect device change while walking through parent directories). abspath returns a canonicalized path, symbolic link free. retrieive_ceiling_directories_offset returns the biggest path offset that path match in the ceiling directory list (so that we can stop at ceiling directories).
Romain Geissler committed -
Added gitfo_creat_locked and gitfo_creat_locked_force
Romain Geissler committed -
Conflicts: src/fileops.c
Romain Geissler committed -
Fixed a Windows TO-DO in the prettifying functions.
unknown committed -
Fileops:retrieve_path_root_offset is now named gitfo_retrieve_path_root_offset (like other public functions). Added platform specific directory separator definition.
Romain Geissler committed
-
- 29 May, 2011 1 commit
-
-
Signed-off-by: schu <schu-github@schulog.org>
schu committed
-
- 23 May, 2011 2 commits
-
-
Vicent Marti committed
-
Jakob Pfender committed
-
- 14 May, 2011 1 commit
-
-
nulltoken committed
-
- 23 Mar, 2011 1 commit
-
-
Temporary files when doing streaming writes are now stored inside the Objects folder, to prevent issues when moving files between disks/partitions. Add support for block writes to the ODB again (for those backends that cannot implement streaming).
Vicent Marti committed
-
- 22 Mar, 2011 4 commits
-
-
Vicent Marti committed
-
nulltoken committed
-
Those functions now return prettified rooted path.
nulltoken committed -
see https://github.com/libgit2/libgit2/issues#issue/84
nulltoken committed
-