Skip to content

Commit

Permalink
setup: document prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Clemens Buchacher authored and Junio C Hamano committed Jun 5, 2010
1 parent 761a889 commit e1e5ec8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ int check_repository_format(void)
return check_repository_format_gently(NULL);
}

/*
* Returns the "prefix", a path to the current working directory
* relative to the work tree root, or NULL, if the current working
* directory is not a strict subdirectory of the work tree root. The
* prefix always ends with a '/' character.
*/
const char *setup_git_directory(void)
{
const char *retval = setup_git_directory_gently(NULL);
Expand Down

0 comments on commit e1e5ec8

Please sign in to comment.