summaryrefslogtreecommitdiff
path: root/src/git/fileops.h
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite git_foreach_dirent into gitfo_direntShawn O. Pearce2008-12-311-33/+0
| | | | | | | | | | | | | | Our fileops API is currently private. We aren't planning on supplying a cross-platform file API to applications that link to us. If we did, we'd probably whole-sale publish fileops, not just the dirent code. By moving it to be private we can also change the call signature to permit the buffer to be passed down through the call chain. This is very helpful when we are doing a recursive scan as we can reuse just one buffer in all stack frames, reducing the impact the recursion has on the stack frames in the data cache. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Cleanup formatting in our head files to be more consistentShawn O. Pearce2008-12-301-2/+3
| | | | Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Fix some doxygen warnings and errorsRamsay Jones2008-12-091-2/+2
| | | | | Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Add a dirent walker to the fileops APIAndreas Ericsson2008-12-021-0/+32
Since at least MS have something like GetFirstDirEnt() and GetNextDirEnt() (presumably with superior performance), we can let MS hackers add support for a dirent walker using that API instead, while we stick with the posix-style readdir() calls. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>