Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  setup: document prefix
  • Loading branch information
Junio C Hamano committed Jun 7, 2010
2 parents 7c42e39 + e1e5ec8 commit 6240161
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 @@ -546,6 +546,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 6240161

Please sign in to comment.