2006-06-23 01:06:39 +04:00
|
|
|
GIT-CFLAGS
|
2007-03-30 11:59:43 +04:00
|
|
|
GIT-GUI-VARS
|
2005-12-28 01:40:17 +03:00
|
|
|
GIT-VERSION-FILE
|
2005-09-09 22:55:56 +04:00
|
|
|
git
|
|
|
|
git-add
|
git-add --interactive
A script to be driven when the user says "git add --interactive"
is introduced.
When it is run, first it runs its internal 'status' command to
show the current status, and then goes into its internactive
command loop.
The command loop shows the list of subcommands available, and
gives a prompt "What now> ". In general, when the prompt ends
with a single '>', you can pick only one of the choices given
and type return, like this:
*** Commands ***
1: status 2: update 3: revert 4: add untracked
5: patch 6: diff 7: quit 8: help
What now> 1
You also could say "s" or "sta" or "status" above as long as the
choice is unique.
The main command loop has 6 subcommands (plus help and quit).
* 'status' shows the change between HEAD and index (i.e. what
will be committed if you say "git commit"), and between index
and working tree files (i.e. what you could stage further
before "git commit" using "git-add") for each path. A sample
output looks like this:
staged unstaged path
1: binary nothing foo.png
2: +403/-35 +1/-1 git-add--interactive.perl
It shows that foo.png has differences from HEAD (but that is
binary so line count cannot be shown) and there is no
difference between indexed copy and the working tree
version (if the working tree version were also different,
'binary' would have been shown in place of 'nothing'). The
other file, git-add--interactive.perl, has 403 lines added
and 35 lines deleted if you commit what is in the index, but
working tree file has further modifications (one addition and
one deletion).
* 'update' shows the status information and gives prompt
"Update>>". When the prompt ends with double '>>', you can
make more than one selection, concatenated with whitespace or
comma. Also you can say ranges. E.g. "2-5 7,9" to choose
2,3,4,5,7,9 from the list. You can say '*' to choose
everything.
What you chose are then highlighted with '*', like this:
staged unstaged path
1: binary nothing foo.png
* 2: +403/-35 +1/-1 git-add--interactive.perl
To remove selection, prefix the input with - like this:
Update>> -2
After making the selection, answer with an empty line to
stage the contents of working tree files for selected paths
in the index.
* 'revert' has a very similar UI to 'update', and the staged
information for selected paths are reverted to that of the
HEAD version. Reverting new paths makes them untracked.
* 'add untracked' has a very similar UI to 'update' and
'revert', and lets you add untracked paths to the index.
* 'patch' lets you choose one path out of 'status' like
selection. After choosing the path, it presents diff between
the index and the working tree file and asks you if you want
to stage the change of each hunk. You can say:
y - add the change from that hunk to index
n - do not add the change from that hunk to index
a - add the change from that hunk and all the rest to index
d - do not the change from that hunk nor any of the rest to index
j - do not decide on this hunk now, and view the next
undecided hunk
J - do not decide on this hunk now, and view the next hunk
k - do not decide on this hunk now, and view the previous
undecided hunk
K - do not decide on this hunk now, and view the previous hunk
After deciding the fate for all hunks, if there is any hunk
that was chosen, the index is updated with the selected hunks.
* 'diff' lets you review what will be committed (i.e. between
HEAD and index).
This is still rough, but does everything except a few things I
think are needed.
* 'patch' should be able to allow splitting a hunk into
multiple hunks.
* 'patch' does not adjust the line offsets @@ -k,l +m,n @@
in the hunk header. This does not have major problem in
practice, but it _should_ do the adjustment.
* It does not have any explicit support for a merge in
progress; it may not work at all.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-12-11 07:55:50 +03:00
|
|
|
git-add--interactive
|
2005-10-15 04:13:49 +04:00
|
|
|
git-am
|
2006-02-25 01:51:15 +03:00
|
|
|
git-annotate
|
2005-08-26 15:00:05 +04:00
|
|
|
git-apply
|
2005-09-09 22:55:56 +04:00
|
|
|
git-archimport
|
Add git-archive
git-archive is a command to make TAR and ZIP archives of a git tree.
It helps prevent a proliferation of git-{format}-tree commands.
Instead of directly calling git-{tar,zip}-tree command, it defines
a very simple API, that archiver should implement and register in
"git-archive.c". This API is made up by 2 functions whose prototype
is defined in "archive.h" file.
- The first one is used to parse 'extra' parameters which have
signification only for the specific archiver. That would allow
different archive backends to have different kind of options.
- The second one is used to ask to an archive backend to build
the archive given some already resolved parameters.
The main reason for making this API is to avoid using
git-{tar,zip}-tree commands, hence making them useless. Maybe it's
time for them to die ?
It also implements remote operations by defining a very simple
protocol: it first sends the name of the specific uploader followed
the repository name (git-upload-tar git://example.org/repo.git).
Then it sends options. It's done by sending a sequence of one
argument per packet, with prefix "argument ", followed by a flush.
The remote protocol is implemented in "git-archive.c" for client
side and is triggered by "--remote=<repo>" option. For example,
to fetch a TAR archive in a remote repo, you can issue:
$ git archive --format=tar --remote=git://xxx/yyy/zzz.git HEAD
We choose to not make a new command "git-fetch-archive" for example,
avoind one more GIT command which should be nice for users (less
commands to remember, keeps existing --remote option).
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Acked-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-09-07 17:12:02 +04:00
|
|
|
git-archive
|
2005-09-09 22:55:56 +04:00
|
|
|
git-bisect
|
2006-12-26 23:14:18 +03:00
|
|
|
git-blame
|
2005-09-09 22:55:56 +04:00
|
|
|
git-branch
|
Add git-bundle: move objects and references by archive
Some workflows require use of repositories on machines that cannot be
connected, preventing use of git-fetch / git-push to transport objects and
references between the repositories.
git-bundle provides an alternate transport mechanism, effectively allowing
git-fetch and git-pull to operate using sneakernet transport. `git-bundle
create` allows the user to create a bundle containing one or more branches
or tags, but with specified basis assumed to exist on the target
repository. At the receiving end, git-bundle acts like git-fetch-pack,
allowing the user to invoke git-fetch or git-pull using the bundle file as
the URL. git-fetch and git-ls-remote determine they have a bundle URL by
checking that the URL points to a file, but are otherwise unchanged in
operation with bundles.
The original patch was done by Mark Levedahl <mdl123@verizon.net>.
It was updated to make git-bundle a builtin, and get rid of the tar
format: now, the first line is supposed to say "# v2 git bundle", the next
lines either contain a prerequisite ("-" followed by the hash of the
needed commit), or a ref (the hash of a commit, followed by the name of
the ref), and finally the pack. As a result, the bundle argument can be
"-" now.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-02-22 03:59:14 +03:00
|
|
|
git-bundle
|
2005-08-26 15:00:05 +04:00
|
|
|
git-cat-file
|
Add basic infrastructure to assign attributes to paths
This adds the basic infrastructure to assign attributes to
paths, in a way similar to what the exclusion mechanism does
based on $GIT_DIR/info/exclude and .gitignore files.
An attribute is just a simple string that does not contain any
whitespace. They can be specified in $GIT_DIR/info/attributes
file, and .gitattributes file in each directory.
Each line in these files defines a pattern matching rule.
Similar to the exclusion mechanism, a later match overrides an
earlier match in the same file, and entries from .gitattributes
file in the same directory takes precedence over the ones from
parent directories. Lines in $GIT_DIR/info/attributes file are
used as the lowest precedence default rules.
A line is either a comment (an empty line, or a line that begins
with a '#'), or a rule, which is a whitespace separated list of
tokens. The first token on the line is a shell glob pattern.
The rest are names of attributes, each of which can optionally
be prefixed with '!'. Such a line means "if a path matches this
glob, this attribute is set (or unset -- if the attribute name
is prefixed with '!'). For glob matching, the same "if the
pattern does not have a slash in it, the basename of the path is
matched with fnmatch(3) against the pattern, otherwise, the path
is matched with the pattern with FNM_PATHNAME" rule as the
exclusion mechanism is used.
This does not define what an attribute means. Tying an
attribute to various effects it has on git operation for paths
that have it will be specified separately.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-04-12 12:07:32 +04:00
|
|
|
git-check-attr
|
2005-10-17 09:41:59 +04:00
|
|
|
git-check-ref-format
|
2005-09-09 22:55:56 +04:00
|
|
|
git-checkout
|
2005-09-08 04:26:23 +04:00
|
|
|
git-checkout-index
|
2005-09-09 22:55:56 +04:00
|
|
|
git-cherry
|
2005-10-20 19:13:24 +04:00
|
|
|
git-cherry-pick
|
2006-04-05 10:00:48 +04:00
|
|
|
git-clean
|
2005-09-09 22:55:56 +04:00
|
|
|
git-clone
|
|
|
|
git-commit
|
2005-08-26 15:00:05 +04:00
|
|
|
git-commit-tree
|
2007-01-29 03:16:53 +03:00
|
|
|
git-config
|
2005-09-09 22:55:56 +04:00
|
|
|
git-count-objects
|
2005-11-08 05:23:10 +03:00
|
|
|
git-cvsexportcommit
|
2005-09-09 22:55:56 +04:00
|
|
|
git-cvsimport
|
2006-02-25 01:51:15 +03:00
|
|
|
git-cvsserver
|
2005-08-26 15:00:05 +04:00
|
|
|
git-daemon
|
2005-09-09 22:55:56 +04:00
|
|
|
git-diff
|
2005-08-26 15:00:05 +04:00
|
|
|
git-diff-files
|
2005-09-09 22:55:56 +04:00
|
|
|
git-diff-index
|
2005-08-26 15:00:05 +04:00
|
|
|
git-diff-tree
|
2006-01-11 09:40:33 +03:00
|
|
|
git-describe
|
2006-08-05 10:04:21 +04:00
|
|
|
git-fast-import
|
2005-09-09 22:55:56 +04:00
|
|
|
git-fetch
|
2007-03-05 02:36:08 +03:00
|
|
|
git-fetch--tool
|
2005-08-26 15:00:05 +04:00
|
|
|
git-fetch-pack
|
2007-06-05 17:26:12 +04:00
|
|
|
git-filter-branch
|
2005-10-15 04:13:49 +04:00
|
|
|
git-findtags
|
2005-09-27 11:06:05 +04:00
|
|
|
git-fmt-merge-msg
|
2006-09-16 00:30:02 +04:00
|
|
|
git-for-each-ref
|
2005-09-09 22:55:56 +04:00
|
|
|
git-format-patch
|
2007-01-29 03:33:58 +03:00
|
|
|
git-fsck
|
2005-09-08 04:26:23 +04:00
|
|
|
git-fsck-objects
|
2006-12-27 10:17:59 +03:00
|
|
|
git-gc
|
2005-08-26 15:00:05 +04:00
|
|
|
git-get-tar-commit-id
|
2005-09-13 06:39:15 +04:00
|
|
|
git-grep
|
2005-08-26 15:00:05 +04:00
|
|
|
git-hash-object
|
2005-09-08 04:26:23 +04:00
|
|
|
git-http-fetch
|
2005-11-08 05:23:10 +03:00
|
|
|
git-http-push
|
2006-03-10 08:32:50 +03:00
|
|
|
git-imap-send
|
2005-10-15 04:13:49 +04:00
|
|
|
git-index-pack
|
2007-01-09 08:27:33 +03:00
|
|
|
git-init
|
2005-08-26 15:00:05 +04:00
|
|
|
git-init-db
|
2006-07-02 02:14:14 +04:00
|
|
|
git-instaweb
|
2005-09-08 04:26:23 +04:00
|
|
|
git-local-fetch
|
2005-09-09 22:55:56 +04:00
|
|
|
git-log
|
2005-11-13 13:07:02 +03:00
|
|
|
git-lost-found
|
2005-08-26 15:00:05 +04:00
|
|
|
git-ls-files
|
2005-09-09 22:55:56 +04:00
|
|
|
git-ls-remote
|
2005-08-26 15:00:05 +04:00
|
|
|
git-ls-tree
|
2005-09-09 22:55:56 +04:00
|
|
|
git-mailinfo
|
|
|
|
git-mailsplit
|
|
|
|
git-merge
|
2005-08-26 15:00:05 +04:00
|
|
|
git-merge-base
|
2005-09-08 04:26:23 +04:00
|
|
|
git-merge-index
|
2006-12-13 02:01:41 +03:00
|
|
|
git-merge-file
|
2006-02-25 01:51:15 +03:00
|
|
|
git-merge-tree
|
2005-09-09 22:55:56 +04:00
|
|
|
git-merge-octopus
|
|
|
|
git-merge-one-file
|
2005-11-02 06:34:49 +03:00
|
|
|
git-merge-ours
|
2005-09-13 10:22:26 +04:00
|
|
|
git-merge-recursive
|
2005-09-09 22:55:56 +04:00
|
|
|
git-merge-resolve
|
|
|
|
git-merge-stupid
|
2007-02-16 03:32:45 +03:00
|
|
|
git-merge-subtree
|
2007-03-06 08:05:16 +03:00
|
|
|
git-mergetool
|
2005-08-26 15:00:05 +04:00
|
|
|
git-mktag
|
2006-02-25 01:51:15 +03:00
|
|
|
git-mktree
|
2005-10-27 14:03:43 +04:00
|
|
|
git-name-rev
|
|
|
|
git-mv
|
2005-11-10 02:16:13 +03:00
|
|
|
git-pack-redundant
|
2005-08-26 15:00:05 +04:00
|
|
|
git-pack-objects
|
2006-09-18 11:34:38 +04:00
|
|
|
git-pack-refs
|
2005-09-09 22:55:56 +04:00
|
|
|
git-parse-remote
|
2005-08-26 15:00:05 +04:00
|
|
|
git-patch-id
|
|
|
|
git-peek-remote
|
2005-09-09 22:55:56 +04:00
|
|
|
git-prune
|
2005-08-26 15:00:05 +04:00
|
|
|
git-prune-packed
|
2005-09-09 22:55:56 +04:00
|
|
|
git-pull
|
|
|
|
git-push
|
2006-05-22 17:46:25 +04:00
|
|
|
git-quiltimport
|
2005-08-26 15:00:05 +04:00
|
|
|
git-read-tree
|
2005-09-09 22:55:56 +04:00
|
|
|
git-rebase
|
2007-06-26 17:38:42 +04:00
|
|
|
git-rebase--interactive
|
2005-08-26 15:00:05 +04:00
|
|
|
git-receive-pack
|
2006-12-26 22:08:08 +03:00
|
|
|
git-reflog
|
2005-09-09 22:55:56 +04:00
|
|
|
git-relink
|
2007-01-09 08:27:33 +03:00
|
|
|
git-remote
|
2005-09-09 22:55:56 +04:00
|
|
|
git-repack
|
2005-11-24 13:36:01 +03:00
|
|
|
git-repo-config
|
2005-09-09 22:55:56 +04:00
|
|
|
git-request-pull
|
2006-02-07 20:21:02 +03:00
|
|
|
git-rerere
|
2005-09-09 22:55:56 +04:00
|
|
|
git-reset
|
2005-08-26 15:00:05 +04:00
|
|
|
git-rev-list
|
|
|
|
git-rev-parse
|
2005-09-09 22:55:56 +04:00
|
|
|
git-revert
|
2006-02-22 02:04:51 +03:00
|
|
|
git-rm
|
2006-09-08 12:05:34 +04:00
|
|
|
git-runstatus
|
2005-09-17 07:40:12 +04:00
|
|
|
git-send-email
|
2005-08-26 15:00:05 +04:00
|
|
|
git-send-pack
|
2005-09-09 22:55:56 +04:00
|
|
|
git-sh-setup
|
2005-10-27 14:03:43 +04:00
|
|
|
git-shell
|
2005-09-09 22:55:56 +04:00
|
|
|
git-shortlog
|
2006-02-06 03:42:49 +03:00
|
|
|
git-show
|
2005-08-26 15:00:05 +04:00
|
|
|
git-show-branch
|
|
|
|
git-show-index
|
2006-09-18 11:35:07 +04:00
|
|
|
git-show-ref
|
2005-09-08 04:26:23 +04:00
|
|
|
git-ssh-fetch
|
2005-09-16 01:56:37 +04:00
|
|
|
git-ssh-pull
|
|
|
|
git-ssh-push
|
2005-09-08 04:26:23 +04:00
|
|
|
git-ssh-upload
|
2007-06-30 09:37:09 +04:00
|
|
|
git-stash
|
2005-09-09 22:55:56 +04:00
|
|
|
git-status
|
2005-08-26 15:00:05 +04:00
|
|
|
git-stripspace
|
2007-05-26 17:56:40 +04:00
|
|
|
git-submodule
|
2006-07-06 11:14:16 +04:00
|
|
|
git-svn
|
2005-10-18 22:35:17 +04:00
|
|
|
git-svnimport
|
2005-10-01 01:26:57 +04:00
|
|
|
git-symbolic-ref
|
2005-09-09 22:55:56 +04:00
|
|
|
git-tag
|
2005-08-26 15:00:05 +04:00
|
|
|
git-tar-tree
|
|
|
|
git-unpack-file
|
|
|
|
git-unpack-objects
|
2005-09-08 04:26:23 +04:00
|
|
|
git-update-index
|
2005-09-27 11:06:05 +04:00
|
|
|
git-update-ref
|
2005-08-26 15:00:05 +04:00
|
|
|
git-update-server-info
|
2006-09-07 17:12:05 +04:00
|
|
|
git-upload-archive
|
2005-08-26 15:00:05 +04:00
|
|
|
git-upload-pack
|
|
|
|
git-var
|
|
|
|
git-verify-pack
|
2005-09-09 22:55:56 +04:00
|
|
|
git-verify-tag
|
|
|
|
git-whatchanged
|
2005-08-26 15:00:05 +04:00
|
|
|
git-write-tree
|
2005-09-24 22:19:07 +04:00
|
|
|
git-core-*/?*
|
2007-03-30 11:59:43 +04:00
|
|
|
gitk-wish
|
2006-08-06 14:47:33 +04:00
|
|
|
gitweb/gitweb.cgi
|
2007-08-04 12:57:29 +04:00
|
|
|
test-absolute-path
|
2007-02-25 05:18:22 +03:00
|
|
|
test-chmtime
|
2005-11-08 05:23:10 +03:00
|
|
|
test-date
|
|
|
|
test-delta
|
2006-04-24 07:20:25 +04:00
|
|
|
test-dump-cache-tree
|
2007-04-11 21:59:51 +04:00
|
|
|
test-genrandom
|
2007-02-16 03:32:45 +03:00
|
|
|
test-match-trees
|
2007-10-13 20:34:45 +04:00
|
|
|
test-parse-options
|
2007-06-03 19:27:52 +04:00
|
|
|
test-sha1
|
2006-03-09 19:24:19 +03:00
|
|
|
common-cmds.h
|
2005-09-24 22:19:07 +04:00
|
|
|
*.tar.gz
|
|
|
|
*.dsc
|
|
|
|
*.deb
|
2007-06-14 03:12:20 +04:00
|
|
|
git.spec
|
2005-09-29 10:22:02 +04:00
|
|
|
*.exe
|
2007-05-30 21:42:41 +04:00
|
|
|
*.[aos]
|
2006-01-05 19:38:58 +03:00
|
|
|
*.py[co]
|
2006-02-07 20:21:02 +03:00
|
|
|
config.mak
|
2006-07-03 03:56:48 +04:00
|
|
|
autom4te.cache
|
2006-09-07 16:30:06 +04:00
|
|
|
config.cache
|
2006-07-03 03:56:48 +04:00
|
|
|
config.log
|
|
|
|
config.status
|
|
|
|
config.mak.autogen
|
2006-08-09 00:42:35 +04:00
|
|
|
config.mak.append
|
2006-07-03 03:56:48 +04:00
|
|
|
configure
|
2007-10-06 18:24:42 +04:00
|
|
|
tags
|
|
|
|
TAGS
|
|
|
|
cscope*
|