Refactored merge options into separate merge-options.txt.
Refactored fetch options into separate fetch-options.txt. Made git-merge use merge-options. Made git-fetch use fetch-options. Made git-pull use merge-options and fetch-options. Added --help option to git-pull and git-format-patch scripts. Rewrote Documentation/Makefile to dynamically determine include dependencies. Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
90279074ca
commit
93d69d8691
12
git-pull.sh
Executable file → Normal file
12
git-pull.sh
Executable file → Normal file
@ -7,7 +7,14 @@
|
||||
. git-sh-setup || die "Not a git archive"
|
||||
|
||||
usage () {
|
||||
die "git pull [-n] [--no-commit] [-s strategy]... <repo> <head>..."
|
||||
echo >&2 "usage: $0"' [-n] [--no-commit] [--no-summary] [--help]
|
||||
[-s strategy]...
|
||||
[<fetch-options>]
|
||||
<repo> <head>...
|
||||
|
||||
Fetch one or more remote refs and merge it/them into the current HEAD.
|
||||
'
|
||||
exit 1
|
||||
}
|
||||
|
||||
strategy_args= no_summary= no_commit=
|
||||
@ -33,6 +40,9 @@ do
|
||||
esac
|
||||
strategy_args="${strategy_args}-s $strategy "
|
||||
;;
|
||||
-h|--h|--he|--hel|--help)
|
||||
usage
|
||||
;;
|
||||
-*)
|
||||
# Pass thru anything that is meant for fetch.
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user