summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Document hooks.Junio C Hamano2005-09-026-2/+157
| | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* Mention post-update when we first talk about publishing a repository.Junio C Hamano2005-09-021-0/+6
| | | | | | | | There is more detailed instruction for `project lead` later in the tutorial to talk about the same, but at this point in the flow of tutorial, the first time reader has no way of knowing it. Signed-off-by: Junio C Hamano <junkio@cox.net>
* scripts: equality test '==' is not portable.Junio C Hamano2005-09-023-9/+15
| | | | | | | | | | | | | | | | On NetBSD 3 we trigger an error: [: ==: unexpected operator Double-equal is accepted by bash built-in '[' and bash(1) suggests using '=' for strict POSIX compliance (test(1) from coreutils does not mention '=='). Eradicate their uses everywhere. [jc: Somebody with a pseudonym kindly sent a message to let me know about the problem privately; I do not have access to a NetBSD box.] Signed-off-by: Junio C Hamano <junkio@cox.net>
* git-checkout-script: Remove unnecessary variable.Junio C Hamano2005-09-021-1/+0
| | | | | | | There was unused variable $i that counted the number of arguments being processed. Remove it. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Fix automerge message.Junio C Hamano2005-09-021-18/+33
| | | | | | | | | | | | The rewrite done while adding the shorthand support made the remote refname recorded in the commit message too long for human consumption, while losing information by using the shorthand not the real URL to name the remote repository there. They were both bad changes done without enough thinking. Pointed out by Linus. Signed-off-by: Junio C Hamano <junkio@cox.net>
* [PATCH] Explain what went wrong on update-cache of new fileAmos Waterland2005-09-011-2/+6
| | | | | | | | | | | | | | | | | If somebody tries to run `git update-cache foo', where foo is a new file, git dies with a rather cryptic error message: fatal: Unable to add foo to database This trivial patch makes git explain what probably went wrong. It is not a perfect diagnosis of all error paths, but for 90% of the cases it should provide the user with the clue they need. [jc: I ended up wording slightly differently, and fixed another confusing error message I noticed while reviewing the code.] Signed-off-by: Amos Waterland <apw@rossby.metr.ou.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
* Add repository-layout document.Junio C Hamano2005-09-014-14/+148
| | | | | | ... and link to it from both the main index and the tutorial. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Use 'git status' now it can handle initial commit.Junio C Hamano2005-08-311-25/+20
| | | | | | | Update 'git commit' to use the updated `git status`. Also earlier the `-s` flag was ignored for the initial commit. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Fix git-status when HEAD is invalid.Junio C Hamano2005-08-311-4/+16
| | | | | | It tried to do git-diff-cache against HEAD, of course. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Fix git-log-script when HEAD is invalid.Junio C Hamano2005-08-311-2/+13
| | | | | | | | It used 'die' without including git-sh-setup-script; since everything it uses are subdirectory-aware, instead of including the script to force it to be run from the top, use echo & exit. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Add Pine 4.63 help from Daniel.Junio C Hamano2005-08-311-0/+12
| | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* Update tutorial.Junio C Hamano2005-08-301-291/+370
| | | | | | | | Finally I bit the bullet and did a full sweep of this document. The changes are mostly clarifications, adjusting old terminology to the glossary compatible one, and asciidoc formatting. Signed-off-by: Junio C Hamano <junkio@cox.net>
* show-branch: make it work in a subdirectory.Junio C Hamano2005-08-301-0/+2
| | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* [PATCH] Initial import of git-archimport-scriptMartin Langhoff2005-08-301-0/+593
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Imports a project history from one or more Arch repositories, following the branching and tagging across repositories. Note you should import separate projects to separate GIT repositories. Supported - Imports, tags and simple commits. - File renames - Arch tags - Binary files - Large trees - Multiple repositories - Branches TODO: - Allow re-running the import on an already-imported project - Follow merges using Arch data - Audit shell escaping of filenames - Better support for file metadata - Better/safer creation of temp directories Unsupported: - Arch 'configuration' [jc: my arch/tla is very rusty and after Tom announced he is stepping down as the maintainer I have very little motivation to relearn it, so I would appreciate if people discuss any bugs or enhancements directly with Martin. Of course I can help with the git end of the issues.] Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
* cat-file: make it work in a subdirectory.Junio C Hamano2005-08-301-0/+1
| | | | | Signed-off-by: Junio C Hamano <junkio@cox.net> (cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit)
* Documentaion updates.Junio C Hamano2005-08-309-357/+508
| | | | | | | Mostly making the formatted html prettier. Signed-off-by: Junio C Hamano <junkio@cox.net> (cherry picked from 7adf1f15ebe074d4767df941817a6cf86d8e2533 commit)
* 'git bisect visualize'Junio C Hamano2005-08-301-6/+22
| | | | | | | | | | | | | | | Linus says: I'm testing bisection to find a bug that causes my G5 to no longer boot, and during the process have found this command line very nice: gitk bisect/bad --not $(cd .git/refs ; ls bisect/good-*) it basically shows the state of bisection with the known bad commit as the top, and cutting off all the good commits - so what you see are the potential buggy commits. Signed-off-by: Junio C Hamano <junkio@cox.net>
* [PATCH] Fix bisection terminating conditionLinus Torvalds2005-08-301-2/+6
| | | | | | | | | | | | | | | When testing bisection and using gitk to visualize the result, it was obvious that the termination condition was broken. We know what the bad entry is only when the bisection ends up telling us to test the known-bad entry again. Also, add a safety net: if somebody marks as good something that includes the known-bad point, we now notice and complain, instead of writing an empty revision to the new bisection branch. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* parse-remote: trivial fix to allow refs/{heads,tags}/ spelled easier.Junio C Hamano2005-08-301-0/+4
| | | | | | | | | Earlier we always prefixed refs/heads to the token given to "git fetch" (and "git pull") as refspec. This was a mistake. Allow them to be spelled like "master:refs/tags/paulus" to mean "I want to fetch the master there and store it as my local "paulus" tag. Signed-off-by: Junio C Hamano <junkio@cox.net>
* Merge refs/heads/master from paulus Junio C Hamano2005-08-301-19/+126
|\
| * Draw selected graph line thicker and make arrowheads active.Paul Mackerras2005-08-301-19/+126
| |
* | Make sure howto/*.html is built as well.Junio C Hamano2005-08-291-2/+2
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | [PATCH] Make "git resolve" less scaryLinus Torvalds2005-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we resolve a merge between two branches, and it removes a file in the current branch, we notify the person doing the resolve with a big nice notice like Removing xyzzy which is all well and good. HOWEVER, we also do this when the file was actually removed in the current branch, and we're merging with another branch that didn't have it removed (or, indeed, if the other branch _did_ have it removed, but the common parent was far enough back that the file still existed in there). And that just doesn't make sense. In that case we're not removing anything: the file didn't exist in the branch we're merging into in the first place. So the message just makes people nervous, and makes no sense. This has been around forever, but I never bothered to do anything about it. Until now. The trivial fix is to only talk about removing files if the file existed in the branch we're merging into, but will not exist in the result. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Allow asciidoc formatted documentation in howto/Junio C Hamano2005-08-293-4/+18
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Add [HOWTO] revert/branch/rebase.Junio C Hamano2005-08-291-0/+199
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | git commit: Allow editing on all occasions.Junio C Hamano2005-08-291-0/+3
| | | | | | | | | | | | | | | | | | | | Sometimes it may be handy to be able to edit messages that come from somewhere other than an existing commit. This makes 'git commit -F <file> -e' to start editor with the initial log message contents taken from <file>. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Do not verify reverted/cherry-picked/rebased patches.Junio C Hamano2005-08-291-1/+1
| | | | | | | | | | | | | | | | | | The original committer may have used validation criteria that is less stricter than yours. You do not want to lose the changes even if they are done in substandard way from your 'commit -v' verifier's point of view. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Fix compilation warnings.Junio C Hamano2005-08-292-2/+2
| | | | | | | | | | | | ... found by compiling them with gcc 2.95. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | [PATCH] Update Thunderbird specific hints.A Large Angry SCM2005-08-291-6/+2
| | | | | | | | | | | | | | Setting the wraplength to zero keeps the bird from trimming WS. Signed-off-by: <gitzilla@gmail.com> (cherry picked from 1d535d525d6a0ddddc3755065d721278bc5f0aff commit)
* | [PATCH] Documentation for git-request-pull-script.A Large Angry SCM2005-08-291-8/+10
| | | | | | | | | | | | | | Copy & paste source comments into documentation. Signed-off-by: <gitzilla@gmail.com> (cherry picked from 10dce95490cb02f66b3a08984ccdee0a92b48236 commit)
* | [PATCH] Documentation for git-clone-dumb-http.A Large Angry SCM2005-08-291-10/+8
| | | | | | | | | | | | | | Copy & paste source comments into documentation. Signed-off-by: <gitzilla@gmail.com> (cherry picked from f79528e5d05a64d68b8e09a18521950775e99ec1 commit)
* | [PATCH] Documentation for git-daemon.A Large Angry SCM2005-08-291-9/+17
| | | | | | | | | | | | | | Copy & paste source comments into documentation. Signed-off-by: <gitzilla@gmail.com> (cherry picked from 5d0a4efeff62cfa363437f91308453b5b9fd8cf5 commit)
* | Accumulated documentation updates.Junio C Hamano2005-08-298-149/+297
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | git-repack-script: Add option to repack all objects.Junio C Hamano2005-08-291-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This originally came from Frank Sorenson, but with a bit of rework to allow future enhancements without changing the external interface for pack pruning part. With the '-a' option, all objects in the current repository are packed into a single pack. When the '-d' option is given at the same time, existing packs that were made redundant by this round of repacking are deleted. Since we currently have only two repacking strategies, one with '-a' (everything into one) and the other without '-a' (incrementally pack only the unpacked ones), the '-d' option is meaningful only when used with '-a'; it removes the packs existed before we did the "everything into one" repacking. At least for now. Signed-off-by: Junio C Hamano <junkio@cox.net> Acked-by: Frank Sorenson <frank@tuxrocks.com> (cherry picked from bfed505327e31221d8de796b3af880bad696b149 commit)
* | Updates: show-branchJunio C Hamano2005-08-291-22/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | Earlier show-branch gave names only to commits reachable via first parent ancestry chain. Change the naming code to name everybody. The original idea was to stop at the first merge point in the topological order, and --more=<n> to show commits until we show <n> more extra merge points. However depending on the order of how we discover the commits, it additionally showed parents of the <n>th merge points, which was unnecessary. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | mailinfo and applymbox updatesJunio C Hamano2005-08-292-86/+554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This attempts to minimally cope with a subset of MIME "features" often seen in patches sent to our mailing lists. Namely: - People's name spelled in characters outside ASCII (both on From: header and the signed-off-by line). - Content-transfer-encoding using quoted-printable (both in multipart and non-multipart messages). These MIME features are detected and decoded by "git mailinfo". Optionally, with the '-u' flag, the output to .info and .msg is transliterated from its original chaset to utf-8. This is to encourage people to use utf8 in their commit messages for interoperability. Applymbox accepts additional flag '-u' which is passed to mailinfo. Signed-off-by: Junio C Hamano / 濱野 純 <junkio@cox.net>
* | Document "git cherry-pick" and "git revert"Junio C Hamano2005-08-293-1/+75
| | | | | | | | Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Remove git-apply-patch-script.Junio C Hamano2005-08-296-194/+5
| | | | | | | | | | | | | | | | Now the rebase is rewritten to use git cherry-pick, there is no user for that ancient script. I've checked Cogito and StGIT to make sure they do not use it. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Redo "revert" using three-way merge machinery.Junio C Hamano2005-08-294-39/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reverse patch application using "git apply" sometimes is too rigid. Since the user would get used to resolving conflicting merges by hand during the normal merge experience, using the same machinery would be more helpful rather than just giving up. Cherry-picking and reverting are essentially the same operation. You pick one commit, and apply the difference that commit introduces to its own commit ancestry chain to the current tree. Revert applies the diff in reverse while cherry-pick applies it forward. They share the same logic, just different messages and merge direction. Rewrite "git rebase" using "git cherry-pick". Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Revert "Replace zero-length array decls with []."Junio C Hamano2005-08-295-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts 6c5f9baa3bc0d63e141e0afc23110205379905a4 commit, whose change breaks gcc-2.95. Not that I ignore portability to compilers that are properly C99, but keeping compilation with GCC working is more important, at least for now. We would probably end up declaring with "name[1]" and teach the allocator to subtract one if we really aimed for portability, but that is left for later rounds. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Merge refs/heads/portable from http://www.cs.berkeley.edu/~ejr/gits/git.git Junio C Hamano2005-08-2818-38/+73
|\ \
| * | Replace C99 array initializers with code.Jason Riedy2005-08-231-8/+18
| | | | | | | | | | | | | | | | | | | | | The only use of C99 array initializers is in ident.c, so just replace it with initializing code. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
| * | Replace unsetenv() and setenv() with older putenv().Jason Riedy2005-08-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solaris 8 doesn't have the newer unsetenv() and setenv() functions, so replace them with putenv(). The one use of unsetenv() in fsck-cache.c now sets GIT_ALTERNATE_OBJECT_ DIRECTORIES to the empty string. Every place that var is used, NULLs are also replaced with empty strings, so it's ok. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
| * | Include sys/time.h in daemon.c.Jason Riedy2005-08-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Some systems and feature levels want sys/time.h for fd_set functionality. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
| * | Fix ?: statements.Jason Riedy2005-08-2311-19/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | Omitting the first branch in ?: is a GNU extension. Cute, but not supported by other compilers. Replaced mostly by explicit tests. Calls to getenv() simply are repeated on non-GNU compilers. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
| * | Replace zero-length array decls with [].Jason Riedy2005-08-235-8/+8
| | | | | | | | | | | | | | | | | | C99 denotes variable-sized members with [], not [0]. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
* | | [PATCH] tutorial note about git branchAmos Waterland2005-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Explain that an asterisk will be displayed in front of the current branch when you run `git branch' to see which are available. Signed-off-by: Amos Waterland <apw@rossby.metr.ou.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | Update SubmittingPatches.Junio C Hamano2005-08-281-7/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - It does not matter how I read git list. What matters is that I do not necessarily read everything on it. - Talk a bit about how to use applymbox to check one's own patches. - Talk a bit about PGP signed patches. Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | [PATCH] Add footnote about Thunderbird about trimming trailing WS.A Large Angry SCM2005-08-281-2/+4
| | | | | | | | | | | | | | | | | | | | | Add footnote about Thunderbird about trimming trailing WS. Signed-off-by: <gitzilla@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | | [PATCH] Add some documentation.A Large Angry SCM2005-08-282-20/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add some documentation. Text taken from the the commit messages and the command sources. Signed-off-by: <gitzilla@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>