AgeCommit message (Collapse)Author
2006-05-07repo-config: document what value_regexp does a bit more clearly.Junio C Hamano
Signed-off-by: Junio C Hamano <>
2006-05-07Release config lock if the regex is invalidPavel Roskin
Signed-off-by: Pavel Roskin <> Signed-off-by: Junio C Hamano <>
2006-05-07core-tutorial.txt: escape asteriskMatthias Lederhofer
Signed-off-by: Junio C Hamano <>
2006-05-05core.prefersymlinkrefs: use symlinks for .git/HEADJunio C Hamano
When inspecting a project whose build infrastructure used to assume that .git/HEAD is a symlink ref, core.prefersymlinkrefs in the config file of such a project would help to bisect its history. Signed-off-by: Junio C Hamano <> (cherry picked from 9f0bb90d161edf8c43f5261d12bf83f14eb02ff4 commit)
2006-05-05repo-config: trim white-space before commentJohannes Schindelin
Earlier, calling git-repo-config core.hello on a .git/config like this: [core] hello = world ; a comment would yield "world " (i.e. with a trailing space). Signed-off-by: Johannes Schindelin <> Signed-off-by: Junio C Hamano <> (cherry picked from c1aee1fd8d94da9b3c5d2dc1d4264f7e73a58f80 commit)
2006-05-05Fix for config file section parsing.sean
Currently, if the target key has a section that matches the initial substring of another section we mistakenly believe we've found the correct section. To avoid this problem, ensure that the section lengths are identical before comparison. Signed-off-by: Sean Estabrooks <> Signed-off-by: Junio C Hamano <>
2006-05-04Add a few more words to the glossary.v1.3.2Jon Loeliger
Clean up a few entries and fix typos. bare repository cherry-picking hook topic branch [jc: removing questionable "symbolic ref -- see 'ref'" for now.] Signed-off-by: Jon Loeliger <> Signed-off-by: Junio C Hamano <>
2006-05-04Added definitions for a few words:Jon Loeliger
fast forward pickaxe refspec tracking branch Wild hack allows "link:git-" prefix to reference commands too. Signed-off-by: Jon Loeliger <> Signed-off-by: Junio C Hamano <>
2006-05-04Alphabetize the glossary.Jon Loeliger
Signed-off-by: Jon Loeliger <> Signed-off-by: Junio C Hamano <>
2006-05-03fix various typos in documentationMatthias Kestenholz
Signed-off-by: Matthias Kestenholz <> Signed-off-by: Junio C Hamano <>
2006-05-02git-send-email: fix version string to be valid perlMartin Langhoff
This makes git-send-email easier to develop and debug, skipping the need to `make git-send-email` every time. Signed-off-by: Junio C Hamano <>
2006-05-02Give the user a hint for how to continue in the case that git-am fails ↵Robert Shearman
because it requires user intervention Give the user a hint for how to continue in the case that git-am fails because it requires user intervention. Signed-off-by: Robert Shearman <> Signed-off-by: Junio C Hamano <>
2006-04-30git-format-patch: Use rfc2822 compliant date.Huw Davies
Signed-off-by: Huw Davies <> Signed-off-by: Junio C Hamano <>
2006-04-28Fix trivial typo in git-log man page.Sean Estabrooks
Signed-off-by: Sean Estabrooks <>
2006-04-28Properly render asciidoc "callouts" in git man pages.Sean Estabrooks
Adds an xsl fragment to render docbook callouts when converting to man page format. Update the Makefile to have "xmlto" use it when generating man pages. Signed-off-by: Sean Estabrooks <>
2006-04-28Fix up remaining man pages that use asciidoc "callouts".Sean Estabrooks
Unfortunately docbook does not allow a callout to be referenced from inside a callout list description. Rewrite one paragraph in git-reset man page to work around this limitation. Signed-off-by: Sean Estabrooks <>
2006-04-28Update the git-branch man page to include the "-r" option,Sean Estabrooks
and fix up asciidoc "callouts" Signed-off-by: Sean Estabrooks <>
2006-04-28annotate: display usage information if no filename was givenMatthias Kestenholz
Signed-off-by: Matthias Kestenholz <>
2006-04-28annotate: fix warning about uninitialized scalarMatthias Kestenholz
Use of uninitialized value in scalar chomp at ./git-annotate.perl line 212, <$kid> chunk 4. Signed-off-by: Matthias Kestenholz <>
2006-04-28git-am --resolved: more usable error message.Junio C Hamano
After doing the hard work of hand resolving the conflicts in the working tree, if the user forgets to run update-index to mark the paths that have been resolved, the command gave an unfriendly "fatal: git-write-tree: not able to write tree" error message. Catch the situation early and give more meaningful message and suggestion. Noticed and suggested by Len Brown. Signed-off-by: Junio C Hamano <>
2006-04-27verify-pack: check integrity in a saner order.Junio C Hamano
Check internal integrity to report corrupt pack or idx, and then check cross-integrity between idx and pack. Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
2006-04-26commit-tree.c: check_valid() microoptimization.Junio C Hamano
There is no point reading the whole object just to make sure it exists and it is of the expected type. We added sha1_object_info() for such need after this code was written, so use it. Signed-off-by: Junio C Hamano <>
2006-04-26Fix filename verification when in a subdirectoryLinus Torvalds
When we are in a subdirectory of a git archive, we need to take the prefix of that subdirectory into accoung when we verify filename arguments. Noted by Matthias Lederhofer This also uses the improved error reporting for all the other git commands that use the revision parsing interfaces, not just git-rev-parse. Also, it makes the error reporting for mixed filenames and argument flags clearer (you cannot put flags after the start of the pathname list). [jc: with fix to a trivial typo noticed by Timo Hirvonen] Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
2006-04-26rebase: typofix.Junio C Hamano
Noticed by Sean. Signed-off-by: Junio C Hamano <>
2006-04-25socksetup: don't return on set_reuse_addr() errorv1.3.1Serge E. Hallyn
The set_reuse_addr() error case was the only error case in socklist() where we returned rather than continued. Not sure why. Either we must free the socklist, or continue. This patch continues on error. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <> (cherry picked from 0032d548db56eac9ea09b4ba05843365f6325b85 commit)
2006-04-25Document the configuration filePetr Baudis
This patch adds a Documentation/config.txt file included by git-repo-config and currently aggregating hopefully all the available git plumbing / core porcelain configuration variables, as well as briefly describing the format. It also updates an outdated bit of the example in git-repo-config(1). Signed-off-by: Petr Baudis <>
2006-04-25Document git-var -l listing also configuration variablesPetr Baudis
Signed-off-by: Petr Baudis <>
2006-04-25rev-parse: better error message for ambiguous argumentsPaul Mackerras
Currently, if git-rev-parse encounters an argument that is neither a recognizable revision name nor the name of an existing file or directory, and it hasn't encountered a "--" argument, it prints an error message saying "No such file or directory". This can be confusing for users, including users of programs such as gitk that use git-rev-parse, who may then think that they can't ask about the history of files that no longer exist. This makes it print a better error message, one that points out the ambiguity and tells the user what to do to fix it. Signed-off-by: Paul Mackerras <>
2006-04-21git-log produces no outputLinus Torvalds
When $PAGER is set to 'less -i', we used to fail because we assumed the $PAGER is a command and simply exec'ed it. Try exec first, and then run it through shell if it fails. This allows even funkier PAGERs like these ;-): PAGER='sed -e "s/^/`date`: /" | more' PAGER='contrib/colordiff.perl | less -RS' Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
2006-04-21fix pack-object buffer sizeNicolas Pitre
The input line has 40 _chars_ of sha1 and no 20 _bytes_. It should also account for the space before the pathname, and the terminating \n and \0. Signed-off-by: Nicolas Pitre <> Signed-off-by: Junio C Hamano <>
2006-04-21mailinfo: decode underscore used in "Q" encoding properly.Junio C Hamano
Quoted-Printable (RFC 2045) and the "Q" encoding (RFC 2047) are subtly different; the latter is used on the mail header and an underscore needs to be decoded to 0x20. Signed-off-by: Junio C Hamano <>
2006-04-21Reintroduce svn pools to solve the memory leak.Santi_Béjar
Introduced in 4802426. Signed-off-by: Santi Béjar <> Signed-off-by: Junio C Hamano <>
2006-04-21pack-objects: do not stop at object that is "too small"Junio C Hamano
Because we sort the delta window by name-hash and then size, hitting an object that is too small to consider as a delta base for the current object does not mean we do not have better candidate in the window beyond it. Noticed by Shawn Pearce, analyzed by Nico, Linus and me. Signed-off-by: Junio C Hamano <>
2006-04-20git-commit --amend: two fixes.Junio C Hamano
When running "git commit --amend" only to fix the commit log message without any content change, we mistakenly showed the git-status output that says "nothing to commit" without commenting it out. If you have already run update-index but you want to amend the top commit, "git commit --amend --only" without any paths should have worked, because --only means "starting from the base commit, update-index these paths only to prepare the index to commit, and perform the commit". However, we refused -o without paths. Signed-off-by: Junio C Hamano <>
2006-04-19pre-commit hook: complain about conflict markers.Junio C Hamano
Several <<< or === or >>> characters at the beginning of a line is very likely to be leftover conflict markers from a failed automerge the user resolved incorrectly, so detect them. As usual, this can be defeated with "git commit --no-verify" if you really do want to have those files, just like changes that introduce trailing whitespaces. Signed-off-by: Junio C Hamano <>
2006-04-19git-merge: a bit more readable user guidance.Junio C Hamano
We said "fix up by hand" after failed automerge, which was a big "Huh? Now what?". Be a bit more explicit without being too verbose. Suggested by Carl Worth. Signed-off-by: Junio C Hamano <>
2006-04-19Document git-clone --referenceShawn Pearce
The new --reference flag introduced to git-clone in GIT 1.3.0 was not documented but is rather handy. So document it. Also corrected a minor issue with the documentation for the -s flag; the info/alternates file name was spelled wrong. Signed-off-by: Shawn O. Pearce <> Signed-off-by: Junio C Hamano <>
2006-04-18Fix filename scaling for binary filesJonas Fonseca
Set maximum filename length for binary files so that scaling won't be triggered and result in invalid string access. Signed-off-by: Jonas Fonseca <> Signed-off-by: Junio C Hamano <>
2006-04-18GIT 1.3.0v1.3.0Junio C Hamano
Signed-off-by: Junio C Hamano <>
2006-04-18Add git-annotate(1) and git-blame(1)Jonas Fonseca
[jc: with entries in git.txt] Signed-off-by: Jonas Fonseca <> Signed-off-by: Junio C Hamano <>
2006-04-18diff --stat: make sure to set recursive.Junio C Hamano
Just like "patch" format always needs recursive, "diffstat" format does not make sense without setting recursive. Signed-off-by: Junio C Hamano <>
2006-04-18git-svnimport symlink supportHerbert Valerio Riedel
added svn:special symlink support for access methods other than direct-http Signed-off-by: Herbert Valerio Riedel <> Acked-by: Matthias Urlichs <> Signed-off-by: Junio C Hamano <>
2006-04-18packed_object_info_detail(): check for corrupt packfile.Junio C Hamano
Serge E. Hallyn noticed that we compute how many input bytes are still left, but did not use it for sanity checking. Signed-off-by: Junio C Hamano <>
2006-04-17cleanups: remove unused variable from exec_cmd.cSerge E. Hallyn
Not sure whether it should be removed, or whether execv_git_cmd() should return it rather than -1 at bottom. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <>
2006-04-17cleanups: prevent leak of two strduped strings in config.cSerge E. Hallyn
Config_filename and lockfile are strduped and then leaked in git_config_set_multivar. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <>
2006-04-17cleanups: Remove impossible case in quote.cSerge E. Hallyn
The switch is inside an if statement which is false if the character is ' '. Either the if should be <=' ' instead of <' ', or the case should be removed as it could be misleading. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <>
2006-04-17cleanups: Remove unused vars from combine-diff.cSerge E. Hallyn
Mod_type in particular sure looks like it wants to be used, but isn't. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <>
2006-04-17cleanups: Fix potential bugs in connect.cSerge E. Hallyn
The strncmp for ACK was ACK does not include the final space. Presumably either we should either remove the trailing space, or compare 4 chars (as this patch does). 'path' is sometimes strdup'ed, but never freed. Signed-off-by: Serge E. Hallyn <> Signed-off-by: Junio C Hamano <>
2006-04-17Merge branch 'jc/boundary'Junio C Hamano
* jc/boundary: rev-list --boundary: show boundary commits even when limited otherwise.
2006-04-17Merge branch 'jc/bottomless'Junio C Hamano
* jc/bottomless: rev-list --bisect: limit list before bisecting.