Commit Graph

822 Commits

Author SHA1 Message Date
Junio C Hamano
cf64b0cf03 Merge branch 'jt/format-patch' into next
* jt/format-patch:
  builtin-log: typefix for recent format-patch changes.
  Add option to set initial In-Reply-To/References
  Add option to enable threading headers
  git-format-patch: Make the second and subsequent mails replies to the first
2006-07-14 22:48:29 -07:00
Josh Triplett
da56645dd7 Add option to set initial In-Reply-To/References
Add the --in-reply-to option to provide a Message-Id for an initial
In-Reply-To/References header, useful for including a new patch series as part
of an existing thread.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-14 20:41:37 -07:00
Josh Triplett
cc35de8470 Add option to enable threading headers
Add a --thread option to enable generation of In-Reply-To and References
headers, used to make the second and subsequent mails appear as replies to the
first.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-14 20:41:37 -07:00
Junio C Hamano
bc1820fcfb Merge branch 'master' into next
* master:
  Documentation/urls.txt: Use substitution to escape square brackets
  Documentation/Makefile: product depends on asciidoc.conf
  Fix "git-fetch --tags" exit status when nothing has been changed
  argv created by handle_alias should be NULL terminated
  documentation (urls.txt) typofix
2006-07-14 16:44:52 -07:00
Jonas Fonseca
a3e65d74ee Documentation/urls.txt: Use substitution to escape square brackets
This changes "[user@]" to use {startsb} and {endsb} to insert [ and ],
similar to how {caret} is used in git-rev-parse.txt.

[jc: Removed a well-intentioned comment that broke the final
 formatting from the original patch.  While we are at it,
 updated the paragraph that claims to be equivalent to the
 section that was updated earlier without making matching
 changes.]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-14 16:36:00 -07:00
Junio C Hamano
c7543ce0be Documentation/Makefile: product depends on asciidoc.conf
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-14 16:32:38 -07:00
Alp Toker
dd4c59121f documentation (urls.txt) typofix 2006-07-14 11:31:50 -07:00
Junio C Hamano
b4eba0a25c Merge branch 'lt/objformat' into next
* lt/objformat:
  sha1_file: add the ability to parse objects in "pack file format"
2006-07-13 23:18:55 -07:00
Junio C Hamano
a080bc7fcc Merge branch 'jc/clone-bind-failure' into next
* jc/clone-bind-failure:
  fetch/clone: check return status from ls-remote
  gitweb.css: Use monospace fonts for commits and tree-diff.
  Do not use perl in git-commit.sh
  diff: Support 256 colors
  diff: Support both attributes and colors
  Documentation about exclude/ignore files
  daemon: new option --detach to run git-daemon in background
  daemon: new option --pid-file=<path> to store the pid
  upload-pack: ignore write errors to stderr
  daemon: if one of the standard fds is missing open it to /dev/null
  daemon: use a custom die routine with syslog
  Documentation: Fix ssh://[user@]host.xz URL
  Adjust t4013 tests to corrected format-patch.
  format-patch: Generate a newline between the subject header and the message body
  t4013 diff format tests update
  Display help for Git mode after pressing `h' or `?' in *git-status*
  Wrap long lines in docstrings in contrib/emacs/git.el
2006-07-13 23:12:39 -07:00
Linus Torvalds
93821bd97a sha1_file: add the ability to parse objects in "pack file format"
The pack-file format is slightly different from the traditional git
object format, in that it has a much denser binary header encoding.
The traditional format uses an ASCII string with type and length
information, which is somewhat wasteful.

A new object format starts with uncompressed binary header
followed by compressed payload -- this will allow us later to
copy the payload straight to packfiles.

Obviously they cannot be read by older versions of git, so for
now new object files are created with the traditional format.
core.legacyheaders configuration item, when set to false makes
the code write in new format for people to experiment with.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-13 23:11:56 -07:00
Matthias Lederhofer
ff4d78041e Documentation about exclude/ignore files
Use .git/info/exclude in the example in git-ls-files.txt,
instead of .git/ignore, and update the list of commands looking
at .git/info/exclude in repository-layout.txt.

Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-13 21:52:42 -07:00
Junio C Hamano
8d5e26848d Documentation: Fix ssh://[user@]host.xz URL
Earlier commit c3f17061 broke asciidoc markup.

Noticed by Alp Toker with a fix, but fixed up in a way with smaller
formatting impact.

Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-13 21:48:45 -07:00
Junio C Hamano
d3ba675aae Merge branch 'ml/trace'
* ml/trace:
  test-lib: unset GIT_TRACE
  GIT_TRACE: fix a mixed declarations and code warning
  GIT_TRACE: show which built-in/external commands are executed
2006-07-12 23:09:10 -07:00
Junio C Hamano
5bae45fe2d Merge branch 'sp/reflog' into next
* sp/reflog:
  Log ref changes made by resolve.
  Log ref changes made by quiltimport.
  Log ref changes made by git-merge and git-pull.
  git-fetch: fix a bashism (==)
  Make the unpacked object header functions static to sha1_file.c
  git-send-email: Remove redundant Reply-To header
  typofix (git-name-rev documentation)
  Mention the [user@] part in documentation of ssh:// urls.
  tests: Set EDITOR=: and VISUAL=: globally
2006-07-11 14:21:48 -07:00
Alp Toker
2a75848edd typofix (git-name-rev documentation)
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-11 12:45:20 -07:00
Yakov Lerner
c3f17061be Mention the [user@] part in documentation of ssh:// urls.
Signed-off-by: Yakov Lerner <iler.ml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-11 12:39:09 -07:00
Junio C Hamano
028cfcba78 Merge branch 'master' into next
* master:
  Log ref changes made by git-fetch and git-pull.
  Record the type of commit operation in the reflog.
  Allow user.name and user.email to drive reflog entry.
  Fix linking for not-so-clever linkers.
  git-rev-list: add documentation for --parents, --no-merges
2006-07-10 21:45:26 -07:00
Matthias Lederhofer
f443455a5b git-rev-list: add documentation for --parents, --no-merges
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-10 13:48:22 -07:00
Junio C Hamano
f1575a344c Merge branch 'master' into next
* master:
  Avoid C99 comments, use old-style C comments instead.
  Fix more typos, primarily in the code
  gitweb.cgi: Teach "a=blob" action to know the blob/file mime type
  gitweb.cgi: Create $git_temp if it doesn't exist
  git-svn: fix --file/-F option in commit-diff
  Avoid C99 initializers
2006-07-10 00:54:04 -07:00
Pavel Roskin
82e5a82fd7 Fix more typos, primarily in the code
The only visible change is that git-blame doesn't understand
"--compability" anymore, but it does accept "--compatibility" instead,
which is already documented.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-10 00:36:44 -07:00
Junio C Hamano
fc93dbbfc9 Merge branch 'ew/diff'
* ew/diff:
  templates/hooks--update: replace diffstat calls with git diff --stat
  diff: do not use configuration magic at the core-level
  Update diff-options and config documentation.
  diff.c: --no-color to defeat diff.color configuration.
  diff.c: respect diff.renames config option
2006-07-09 23:47:39 -07:00
Junio C Hamano
e6ff54a261 Merge branch 'ew/svn'
* ew/svn:
  Fix some doubled word typos
  Typofix in Makefile comment.
  Makefile: export NO_SVN_TESTS
  git-svn: migrate out of contrib (follow-up)
  git-svn: migrate out of contrib
2006-07-09 23:37:19 -07:00
Junio C Hamano
2ed2af70e8 Merge branch 'ew/svn' into next
* ew/svn:
  Fix some doubled word typos
  Typofix in Makefile comment.
2006-07-09 19:01:32 -07:00
Junio C Hamano
83e36c1a2d Merge branch 'js/merge-base' into next
* js/merge-base:
  Additional merge-base tests (revised)
  merge-base: update the clean-up postprocessing
  Fix typos involving the word 'commit'
  Fix some doubled word typos
  "git -p cmd" to page anywhere
  change ent to tree in git-diff documentation
  Assorted typo fixes
2006-07-09 03:39:07 -07:00
Alp Toker
ff4c848527 Fix typos involving the word 'commit'
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 03:31:36 -07:00
Alp Toker
cb65296348 Fix some doubled word typos
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 03:30:51 -07:00
Alp Toker
3e564f3a6c Fix some doubled word typos
Signed-off-by: Alp Toker <alp@atoker.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 03:29:35 -07:00
Matthias Lederhofer
cfc01c0387 change ent to tree in git-diff documentation
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 03:26:49 -07:00
Pavel Roskin
addf88e455 Assorted typo fixes
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 02:42:41 -07:00
Junio C Hamano
4aa1965b4b Merge branch 'ml/trace' into next
* ml/trace:
  GIT_TRACE: fix a mixed declarations and code warning
  GIT_TRACE: show which built-in/external commands are executed
  Disable color detection during format-patch
  git-cvsexportcommit can't handle merge commits correctly
  Using 'perl' in *.sh
  sed -e '/RE/r rfile/' needs space in 'r rfile'
  Close the index file between writing and committing
  colored diff: diff.color = auto fix
2006-07-09 01:01:49 -07:00
Matthias Lederhofer
575ba9d69d GIT_TRACE: show which built-in/external commands are executed
With the environment variable GIT_TRACE set git will show
 - alias expansion
 - built-in command execution
 - external command execution
on stderr.

Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-09 00:57:23 -07:00
Junio C Hamano
659a6c7f4d Merge branch 'ew/diff' into next
* ew/diff:
  Update diff-options and config documentation.
  diff.c: --no-color to defeat diff.color configuration.
  diff.c: respect diff.renames config option
  diff-options: Explain --text and -a
  Add -a and --text to common diff options help
  Teach diff -a as shorthand for --text
  Teach --text option to diff
2006-07-07 13:33:45 -07:00
Junio C Hamano
b53766483f Update diff-options and config documentation.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-07 12:28:54 -07:00
Eric Wong
b68ea12e30 diff.c: respect diff.renames config option
diff.renames is mentioned several times in the documentation,
but to my surprise it didn't do anything before this patch.

Also add the --no-renames option to override this from the
command-line.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-07 12:28:53 -07:00
Stephan Feder
d507bb1500 diff-options: Explain --text and -a
Signed-off-by: Stephan Feder <sf@b-i-t.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-07 12:28:04 -07:00
Junio C Hamano
fff4cf4cb4 Merge branch 'master' into next
* master:
  rev-parse documentation: talk about range notation.
  show-branch: match documentation and usage
2006-07-06 22:40:33 -07:00
Junio C Hamano
be4c7014f2 rev-parse documentation: talk about range notation.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-06 22:37:51 -07:00
Junio C Hamano
8048e24b87 show-branch: match documentation and usage
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-06 19:29:00 -07:00
Junio C Hamano
bf928e9d2c Merge branch 'js/merge-base' 2006-07-06 19:26:13 -07:00
Junio C Hamano
66fee66ee0 Merge branch 'ew/svn' into next
* ew/svn:
  git-svn: migrate out of contrib
  core.compression documentation formatting fix.
2006-07-06 17:34:26 -07:00
Junio C Hamano
c41ddbf71d Merge branch 'pb/gitpm' 2006-07-06 17:16:00 -07:00
Eric Wong
60d02ccc18 git-svn: migrate out of contrib
Allow NO_SVN_TESTS to be defined to skip git-svn tests.  These
tests are time-consuming due to SVN being slow, and even more so
if SVN Perl libraries are not available.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-06 17:02:47 -07:00
Junio C Hamano
c31cfb3db3 Merge branch 'ew/instaweb'
* ew/instaweb:
  instaweb: fix unportable ';' usage in sed
  Makefile: replace ugly and unportable sed invocation
  Add git-instaweb, instantly browse the working repo with gitweb
  gitweb: Declare global variables with "our"
  gitweb: Enable tree (directory) history display
  gitweb: optimize per-file history generation
2006-07-06 17:01:00 -07:00
Joachim Berdal Haga
3d3e95af82 core.compression documentation formatting fix.
I didn't notice earlier that two colons are required for the
asciidoc entry.

Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-06 16:50:50 -07:00
Junio C Hamano
952a134142 Merge branch 'jc/fmt-merge-msg-test' into next
* jc/fmt-merge-msg-test:
  t6200: fmt-merge-msg test.
  send-email: do not barf when Term::ReadLine does not like your terminal
  boolean: accept yes and no as well
  annotate: Correct most merge following to annotate correctly.
  annotate: Support annotation of files on other revisions.
  Make zlib compression level configurable, and change default.
2006-07-03 19:44:26 -07:00
Petr Baudis
dc2613de86 Git.pm: Add config() method
This accessor will retrieve value(s) of the given configuration variable.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-03 18:35:19 -07:00
Joachim B Haga
12f6c308d5 Make zlib compression level configurable, and change default.
With the change in default, "git add ." on kernel dir is about
twice as fast as before, with only minimal (0.5%) change in
object size. The speed difference is even more noticeable
when committing large files, which is now up to 8 times faster.

The configurability is through setting core.compression = [-1..9]
which maps to the zlib constants; -1 is the default, 0 is no
compression, and 1..9 are various speed/size tradeoffs, 9
being slowest.

Signed-off-by: Joachim B Haga (cjhaga@fys.uio.no)
Acked-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-07-03 13:55:11 -07:00
Junio C Hamano
f23c75a8ec Merge branch 'master' into js/merge-base
This is to pull in the object-hash clean-up from the master branch.
2006-07-03 03:16:52 -07:00
Junio C Hamano
12edc10cca Merge branch 'js/merge-base' into next
* js/merge-base:
  commit.c: do not redefine UNINTERESTING bit.
  Fold get_merge_bases_clean() into get_merge_bases()
  Make clear_commit_marks() clean harder
  Add '...' operator for revisions
  Add get_merge_bases_clean()
2006-07-02 18:12:48 -07:00
Junio C Hamano
7b9efb7a9b Merge branch 'ew/instaweb' into next
* ew/instaweb:
  Add git-instaweb, instantly browse the working repo with gitweb
  gitweb: Declare global variables with "our"
  gitweb: Enable tree (directory) history display
  gitweb: optimize per-file history generation
2006-07-01 18:30:13 -07:00