Add git-var a tool for reading interesting git variables.
Subsystems (2)
PATCH 3/6 Add git-var a tool for reading interesting git variables.
Sharing code between shell scripts and C is a challenge. The program git-var allows us to have a set of named values that a shell script can interrogate and a normal C program
can simply call the functions that compute them. Allowing
sharing when computing plain test values.
---
Documentation/git-var.txt | 60 ++++++++++++++++++++++++++++++++++++++++++ Documentation/git.txt | 3 ++ Makefile | 3 +- var.c | 65 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+), 1 deletions(-) create mode 100644 Documentation/git-var.txt create mode 100644 var.c
2c929de1b5444fadda13becb6df3d852277e6e27
Documentation/git-var.txt new file +60 -0
@@ -0,0 +1,60 @@ +git-var(1) +================== +v0.1, July 2005 + +NAME +---- +git-var - Print the git users identity + + +SYNOPSIS +-------- +git-var [ -l | <variable> ] + +DESCRIPTION +----------- +Prints a git logical variable. + +-l causes the logical variables to be listed. + +EXAMPLE +-------- +$git-var GIT_AUTHOR_IDENT + +Eric W. Biederman <[email protected]> 1121223278 -0600 + + +VARIABLES +---------- +GIT_AUTHOR_IDENT + The author of a piece of code. + +GIT_COMMITTER_IDENT + The person who put a piece of code into git. + +Diagnostics +----------- +You don't exist. Go away!:: + The passwd(5) gecos field couldn't be read +Your parents must have hated you!:: + The password(5) gecos field is longer than a giant static buffer. +Your sysadmin must have hate you!:: + The password(5) name field is longer than a giant static buffer. + +See Also +-------- +link:git-commit-tree.html[git-commit-tree] +link:git-tag-script.html[git-tag-script] + +Author +------ +Written by Eric Biederman <[email protected]> + +Documentation +-------------- +Documentation by Eric Biederman and the git-list <[email protected]>. + +GIT +--- +Part of the link:git.html[git] suite +
Documentation/git.txt +3 -0
@@ -111,6 +111,9 @@ link:git-tar-tree.html[git-tar-tree]:: link:git-unpack-file.html[git-unpack-file]:: Creates a temporary file with a blob's contents +link:git-var.html[git-var]:: + Displays a git logical variable + link:git-verify-pack.html[git-verify-pack]:: Validates packed GIT archive files
Makefile +2 -1
@@ -48,7 +48,7 @@ PROG= git-update-cache git-diff-files git-diff-stages git-rev-parse git-patch-id git-pack-objects \ git-unpack-objects git-verify-pack git-receive-pack git-send-pack \ git-prune-packed git-fetch-pack git-upload-pack git-clone-pack \ - git-show-index git-daemon + git-show-index git-daemon git-var all: $(PROG)
@@ -148,6 +148,7 @@ git-receive-pack: receive-pack.c git-send-pack: send-pack.c git-prune-packed: prune-packed.c git-fetch-pack: fetch-pack.c +git-var: var.c git-http-pull: LIBS += -lcurl git-rev-list: LIBS += -lssl
var.c new file +65 -0
65 lines not on this page · raw message
Wonderful.