F.4 Repository management

Function: mbfl_vc_git_repository_top_srcdir
Function: mbfl_vc_git_repository_top_srcdir_var _RV

Search the file system from the process working directory upwards looking for a .git directory. When found, respectively: print it to stdout (without appending a newline) or store its full pathname into the result variable _RV, then return true. When not found: return false.

When the search is successful: the resulting pathname is cached internally; subsequent calls will use the cached value.

NOTE Calling the functions mbfl_vc_git_enable() and mbfl_change_directory() resets the cached value to nothing.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.