[PATCH] Move git_author_info and git_commiter_info to ident.c

Moving these functions allows all of the logic for figuring out what
these values are to be shared between programs.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Eric W. Biederman
2005-07-14 18:50:33 -06:00
committed by Linus Torvalds
parent e64e1b79d7
commit d289d13625
3 changed files with 12 additions and 10 deletions

View File

@ -79,16 +79,6 @@ static int new_parent(int idx)
return 1;
}
static char *git_author_info(void)
{
return get_ident(gitenv("GIT_AUTHOR_NAME"), gitenv("GIT_AUTHOR_EMAIL"), gitenv("GIT_AUTHOR_DATE"));
}
static char *git_committer_info(void)
{
return get_ident(gitenv("GIT_COMMITTER_NAME"), gitenv("GIT_COMMITTER_EMAIL"), gitenv("GIT_COMMITTER_DATE"));
}
int main(int argc, char **argv)
{
int i;