sort by:
Revision Author Date Message Commit Date
5c5dc2f Mark git-relink-script and git-repack-script executable Sure, "install" will default to installing it executable anyway, but this is the right thing to do. 08 July 2005, 22:59:29 UTC
ba375ac Make "git clone" a lot more user-friendly This silently adds the ".git" directory component if needed, so you don't need to state it explicitly for the source. Also, it turns the source into an absolute pathname when local, so that you can use relative pathnames without losing sight of the source when we cd into the destination. 08 July 2005, 22:46:33 UTC
51cb06c Add "git-push-script" to make a more regular interface It only does local and ssh pushes, because it's really just a wrapper for git-send-pack. We might make it do an rsync mirror or something, of course. 08 July 2005, 21:24:25 UTC
584c6cc Teach 'git-send-pack' to send new branches and tags. The protocol always supported it, but send-pack didn't actually know how to tell the other side about a new branch/tag. NOTE! You'll have to name it explicitly on the command line: if you don't name any branches, git-send-pack will default to the branches that already exist. 08 July 2005, 20:58:40 UTC
99a0a6e Make "for_each_ref()" always use the "canonical" refname. It always uses a git-relative pathname, ie "refs/heads/master" instead of ".git/refs/heads/master" or whatever your GIT_DIR might be. This way when we send refs back-and-forth between repositories, there's never any question about GIT_DIR on either side. 08 July 2005, 20:56:05 UTC
b10d0ec [PATCH] Use sq_quote() to properly quote the parameter to call shell. This tries to be more lenient to the users and stricter to the attackers by quoting the input properly for shell safety, instead of forbidding certain characters from the input. Things to note: - We do not quote "prog" parameter (which comes from --exec). The user should know what he is doing. --exec='echo foo' will supply the first two parameters to the resulting command, while --exec="'echo foo'" will give the first parameter, a single string with a space inside. - We do not care too much about leaking the sq_quote() output just before running exec(). Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 08 July 2005, 18:01:10 UTC
6fb737b [PATCH] Make sq_expand() available as sq_quote(). A useful shell safety helper sq_expand() was hidden as a static function in diff.c. Extract it out and make it available as sq_quote(). Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 08 July 2005, 18:01:10 UTC
b33e966 Add "git-sh-setup-script" for common git shell script setup It sets up the normal git environment variables and a few helper functions (currently just "die()"), and returns ok if it all looks like a git archive. So use it something like . git-sh-setup-script || die "Not a git archive" to make the rest of the git scripts more careful and readable. 08 July 2005, 17:57:21 UTC
acb46f8 git-diff-*: support "-u" as a synonym for "-p" I'm probably not the only one whose fingers have gotten hard-wired to use "-u" for "unified diff". 08 July 2005, 17:45:07 UTC
0acfc97 [PATCH] git-format-patch: Prepare patches for e-mail submission. This is the script I use to prepare patches for e-mail submission. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 08 July 2005, 01:07:12 UTC
924e121 Mark more characters shell-safe. I still worry about just quoting things when passing it off to "ssh" or "sh -c", so I'm being anal. But _, ^ and , are certainly ok and while both ~ and @ can have speacial meaning to shell/ssh they are benign. 08 July 2005, 00:59:23 UTC
659cacf git-fsck-cache: don't complain about lacking references when they are all in packs. We used to not count them at all, which then made us complain that there were no refs. 08 July 2005, 00:05:41 UTC
e27a56a Merge master.kernel.org:/pub/scm/linux/kernel/git/chrisw/git 07 July 2005, 22:56:49 UTC
1038f0c [PATCH] Typofix an error message in pack-check.c The current error message does not make any sense. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 22:54:57 UTC
7765660 [PATCH] Prevent t6000 series from dropping useless sed.script in t/ The Makefile in the test suite directory considers any file matching t[0-9][0-9][0-9][0-9]-*.sh as the top-level test script to be executed. Unfortunately this was not documented, and the common test library, t6000-lib.sh was named to match that pattern. This caused t6000-lib.sh to be called from Makefile as the top-level program, causing it to leave t/sed.script file behind. Rename it to t6000lib.sh to prevent this, and document the naming convention a bit more clearly. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 22:53:35 UTC
e95ab1e [PATCH] Short-circuit git-clone-pack while cloning locally (take 2). When we are cloning a repository on a local filesystem, it is faster to just create a hard linkfarm of .git/object hierarchy and copy the .git/refs files. By default, the script uses the clone-pack method, but it can be told with the -l flag to do the hard linkfarm (falling back on recursive file copy) to replicate the .git/object hierarchy. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 22:53:35 UTC
a9db297 Infrastructure for git rpm builds. Adds GIT_VERSION to Makefile and new make targets: git.spec, dist, and rpm. A simple 'make rpm' will build the rpm. Also adds git.spec.in which is used to generate git.spec. Signed-off-by: Chris Wright <chrisw@osdl.org> 07 July 2005, 20:09:50 UTC
dd7ba8b git-clone-pack: fix sparse warning Local function that wasn't marked static 07 July 2005, 01:51:56 UTC
84b18a8 [PATCH] Tidy up - remove use of (*f)() idiom from epoch.c Replace (*f)() with f() where the former idiom was used in epoch.c Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 01:47:38 UTC
a7336ae [PATCH] Ensure list insertion method does not depend on position of --merge-order argument This change ensures that git-rev-list --merge-order produces the same result irrespective of what position the --merge-order argument appears in the argument list. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 01:03:53 UTC
28346d2 [PATCH] Write sed script directly into temp file, rather than a variable When sed uses \n rather than ; as a separator (for BSD sed(1) compat), it is cleaner to use a file directly, rather than an environment variable containing \n characters. This change changes t/t6000 write to sed.script directly and changes the other tests to remove knowledge of sed.script. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 01:00:28 UTC
f573571 [PATCH] Add t/t6003 with some --topo-order tests Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 07 July 2005, 01:00:28 UTC
889adfe Make gitk use --topo-order instead of --merge-order It's cheaper to calculate, and doesn't give different results depending on the order of the arguments passed in (and is thus more appropriate for something like gitk that can validly take the unordered "--all" flag to show all branches). The previous dup fix seems to have fixed --topo-order. Holler if you still see problems. 06 July 2005, 23:55:53 UTC
960cea2 git-rev-list: remove the DUPCHECK logic, use SEEN instead That's what we should have done in the first place, since it not only avoids another unnecessary flag, it also protects the commits from showing up as duplicates later when they show up as parents of another commit (in the pop_most_recent_commit() path). This will hopefully also fix --topo-sort. 06 July 2005, 23:52:49 UTC
e6c3505 Make sure we generate the whole commit list before trying to sort it topologically This was my cherry-pickng merge bug. But topo-order still shows strange behaviour with multiple heads, so keep gitk using --merge-order for now. 06 July 2005, 17:51:43 UTC
f312de0 [PATCH] Let umask do its work upon filesystem object creation. IIRC our strategy was to let the users' umask take care of the final mode bits. This patch fixes places that deviate from it. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:39:59 UTC
b2cb942 [PATCH] clone-pack.c:write_one_ref() - Create leading directories. The function write_one_ref() is passed the list of refs received from the other end, which was obtained by directory traversal under $GIT_DIR/refs; this can contain paths other than what git-init-db prepares and would fail to clone when there is such. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:39:58 UTC
ff9206e [PATCH] Fixes a problem with --merge-order A B (A is linear descendent of a merge B) This patch passes the test case introduced by the previous patch. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:29:30 UTC
4d3a63b [PATCH] Add a t/t6001 test case for a --merge-order bug This test case demonstrates a problem with --merge-order. A | B |\ C D |/ E | F git-rev-list --merge-order A B doesn't produce the expected output of A B D C E F The problem is fixed by a subsequent patch. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:29:30 UTC
d2775a8 [PATCH] Tidy up - slight simplification of rev-list.c This patch implements a small tidy up of rev-list.c to reduce (but not eliminate) the amount of ugliness associated with the merge_order flag. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:28:02 UTC
d2d02a4 Add "--topo-order" flag to use new topological sort 06 July 2005, 17:25:04 UTC
ab580ac [PATCH] Add a topological sort procedure to commit.c This introduces an in-place topological sort procedure to commit.c. Given a list of commits, sort_in_topological_order() will perform an in-place topological sort of that list. The invariant that applies to the resulting list is: a reachable from b => ord(b) < ord(a) This invariant is weaker than the --merge-order invariant, but is cheaper to calculate (assuming the list has been identified) and will serve any purpose where only a minimal topological order guarantee is required. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 17:19:04 UTC
9e9824b Use the new git-rev-parse "--[no-]flags" in "git diff". This allows you to do git diff v2.6.12..v2.6.13-rc1 drivers/pcmcia to see the diff between v2.6.12 and v2.6.13-rc1 as limited by the filename argument. 06 July 2005, 17:09:58 UTC
f79b65a Add "--flags" and "--no-flags" arguments to git-rev-parse The scripts that use this (notably "git diff") will want to split up flags and file arguments. 06 July 2005, 17:08:08 UTC
bce6286 Remove insane overlapping bit ranges from epoch.c ..and move the DUPCHECK to rev-list.c since both the merge-order and the upcoming topo-sort get confused by dups. 06 July 2005, 16:56:16 UTC
7e21c29 Clean up commit insertion in git-rev-list Jon wants the commits in a different order for merge-order. 06 July 2005, 16:38:06 UTC
f755494 Make "insert_by_date()" match "commit_list_insert()" Same argument order, same return type. This allows us to use a function pointer to choose one over the other. 06 July 2005, 16:31:17 UTC
f6069c5 [PATCH] Change the sed seperator in t/t6000-lib.sh. This trivial patch removes the semicolon as the sed seperator in the t/t6000-lib.sh test script and replaces it with white space. This makes BSD sed(1) much happier. Signed-off-by: Mark Allen <mrallen1@yahoo.com> Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 16:26:13 UTC
8904591 [PATCH] Introduce unit tests for git-rev-list --bisect This patch introduces some unit tests for the git-rev-list --bisect functionality. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 16:26:13 UTC
ce11895 [PATCH] Factor out useful test case infrastructure from t/t6001... into t/t6000-lib.sh Functions that are useful to other t6xxx testcases are moved into t6000-lib.sh To use these functions in a test case, use a test-case pre-amble like: . ./test-lib.sh . ../t6000-lib.sh # t6xxx specific functions Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 16:26:13 UTC
c619ad5 [PATCH] Fix fd leak in git-cvsimport-script Remember to close temporary file Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 15:47:08 UTC
5b35bcd [PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leak The function calls opendir() without a matching closedir(). Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 06 July 2005, 15:47:08 UTC
b43d447 Merge master.kernel.org:/pub/scm/gitk/gitk 06 July 2005, 02:00:26 UTC
f17a1b1 Fix up path-cleanup in git_path() properly GIT_DIR=. ends up being what some of the pack senders use, and we sometimes messed up when cleaning up the path, ie a ".//HEAD" was cleaned up into "/HEAD", not "HEAD" like it should be. We should do some other cleanup, and probably also verify that symlinks don't point to outside the git area. 06 July 2005, 01:10:59 UTC
319aae2 Increase the number of possible heads requested from git-upload-pack Now that git-clone-pack exists, we actually have somebody requesting more than just a single head in a pack. So allow the Jeff's of this world to clone things with tens of heads. 06 July 2005, 00:19:20 UTC
0271611 Add a "git-show-index" helper that shows the contents of a pack index This was invaluable for debugging the zero-sized compression issue, and might be useful for scripting too, if people want to see the contents of a pack. 06 July 2005, 00:08:02 UTC
291ec0f Don't special-case a zero-sized compression. zlib actually writes a header for that case, and while ignoring that header will get us the right data, it will also end up messing up our stream position. So we actually want zlib to "uncompress" even an empty object. 06 July 2005, 00:06:09 UTC
72347a2 Make "git clone" use the new git-clone-pack 05 July 2005, 22:47:34 UTC
1fcc8ea Add "git-clone-pack" program to help with "git clone" 05 July 2005, 22:45:37 UTC
2f34ba3 Fix silly thinko in "head_ref()" It did a "for_each_ref()" in addition to the HEAD case, which was a left-over from an early broken test. 05 July 2005, 22:45:00 UTC
41cb748 Move "get_ack()" to common git_connect functions git-clone-pack will want it too. Soon. 05 July 2005, 22:44:09 UTC
4f7770c Remove multi-head support from fetch-pack It was a misguided attempt to mix fetching and cloning. I'll make a separate clone thing. 05 July 2005, 21:39:30 UTC
12ba7ea Remove unnecessary usage of strncmp() in git-rev-list arg parsing. Not only is it unnecessary, it incorrectly allows extraneous characters at the end of the argument. Junio noticed the --merge-order thing, and Jon points out that if we fix that one, we should fix --show-breaks too. 05 July 2005, 19:12:50 UTC
bbca20a Merge head 'cvs2git' of http://netz.smurf.noris.de/git/git 05 July 2005, 19:03:14 UTC
f03f2ba Work around git-http-pull breakage in git-fetch-script Need to add a final slash. And make it verbose by default, since it's so slow that otherwise people will think it's died. 05 July 2005, 19:02:10 UTC
0a623e7 git-fetch-script: use git-fetch-pack for local and ssh fetches. Also, clean it up a lot. 05 July 2005, 18:38:37 UTC
723c31f Add "git_path()" and "head_ref()" helper functions. "git_path()" returns a static pathname pointer into the git directory using a printf-like format specifier. "head_ref()" works like "for_each_ref()", except for just the HEAD. 05 July 2005, 18:31:32 UTC
f4b3a4c Merge with Linus' current tree 05 July 2005, 13:32:29 UTC
f13bbe7 Merge with http://www.liacs.nl/~sverdool/git.git#cvs2git 05 July 2005, 12:23:36 UTC
a9174a1 cvsimport: getopt accepted a -q option (undocumented and unused). Removed. 05 July 2005, 12:22:53 UTC
210569f git-cvsimport-script: move working directory forward If HEAD happened to point to a cvs branch, move the working directory forward to the tip of the branch. Additionally, if master and "origin" are equal, move master forward to new origin first. 05 July 2005, 11:19:59 UTC
7a662e8 git-rev-list: make sure the output is sorted by recency We didn't sort the refs by date, so if you had multiple refs, the end result would not be properly sorted. 04 July 2005, 23:49:37 UTC
7620d39 Make rev-list flush the stdio buffers after each rev. We'd rather get the revisions in a slow but timely manner than have to wait for them. 04 July 2005, 23:36:48 UTC
75bfc6c Make git-fetch-pack actually do all the unpacking etc. It returns the result SHA1 on stdout, so you can do remote=$(git-fetch-pack host:dir branchname) and it will unpack the objects and "remote" will be the SHA1 name of the branch on the other side. You can then save that off, or merge it, or whatever. 04 July 2005, 23:35:13 UTC
fb9040c Make git-fetch-pack and git-upload-pack negotiate needs/haves fully Now the only piece missing is actually generating the pack-file. 04 July 2005, 22:29:17 UTC
6cada6a Clean up output of "for_each_ref()" when GIT_DIR is "." Remove the "./" at the head, it just looks much nicer. 04 July 2005, 22:28:19 UTC
fc6e714 git-cvsimport-script: remove unused variable 04 July 2005, 21:18:35 UTC
def88e9 Commit first cut at "git-fetch-pack" It's meant to be used by "git fetch" for the local and ssh case. It doesn't actually do the fetching now, but it does discover the common commit point. 04 July 2005, 20:26:53 UTC
013e7c7 Move ref path matching to connect.c library It's a generic thing for matching refs from the other side. 04 July 2005, 20:24:30 UTC
f719259 Factor out the ssh connection stuff from send-pack.c I want to use it for git-fetch-pack too. 04 July 2005, 18:57:58 UTC
1750113 git-cvsimport-script: more error handling 04 July 2005, 15:36:25 UTC
a61eea6 [PATCH] Fixup t/t5300 unit tests broken by 5f3de58ff85c49620ae2a1722d8d4d37c881a054 This patch fixes up the t/t5300 unit tests which were broken by the changes in: Make the name of a pack-file depend on the objects packed there-in. Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> 04 July 2005, 15:22:32 UTC
2853717 git-cvsimport-script: provide direct support for cvsps -z option 04 July 2005, 15:10:06 UTC
6e7e37b git-cvsimport-script: update cvsps cache instead of rebuilding it Updating the cache is sufficient for most purposes. If users really want to rebuild the cache, they can specify the option themselves. 04 July 2005, 13:35:30 UTC
46e63ef git-cvsimport-script: fix branch switching Previous patch broke branch switching. 04 July 2005, 13:28:36 UTC
79ee456 git-cvsimport-script: use private index. 04 July 2005, 11:36:59 UTC
671fe4b git-rev-parse: support show sha1 names for pack entries This is actually subtly wrong. If a short match is found in the object directory, but would _also_ match another SHA1 ID in a pack (or it shows in one pack but not another), we'll never have done the pack lookup, and we think it's unique. I can't find it in myself to care. You really want to use enough of a SHA1 that there is never any ambiguity. 04 July 2005, 04:01:11 UTC
5736bef Make git-rev-parse support cogito-style "short hex names" Currently only for unpacked objects, but the infrastructure is there to do it for packed objects too. 04 July 2005, 03:27:06 UTC
2eb6d82 git-cvsimport-script: leave working directory alone. 03 July 2005, 22:43:26 UTC
5f3de58 Make the name of a pack-file depend on the objects packed there-in. This means that the .git/objects/pack directory is also rsync'able, since the filenames created there-in are either unique or refer to the same data. Otherwise you might not be able to pull from a directory that is partly packed without having to worry about missing objects due to pack-file name clashes. 03 July 2005, 22:34:04 UTC
866d131 git-cvsimport-script: typo head -> heads 03 July 2005, 21:40:48 UTC
2396ec8 Add "git-prune-packed" that removes objects that exist in a pack. This, together with "git repack" can be used to clean up unpacked git archives. 03 July 2005, 21:27:34 UTC
b2d4619 Add "git repack" command that does an incremental pack 03 July 2005, 20:38:01 UTC
1c4a291 Add "--non-empty" flag to git-pack-objects It skips writing the pack-file if it ends up being empty. 03 July 2005, 20:36:58 UTC
12d2a18 "git rev-list --unpacked" shows only unpacked commits More infrastructure to do efficient incremental packs. 03 July 2005, 20:29:54 UTC
eb01937 Add "--incremental" flag to git-pack-objects It won't add an object that is already in a pack to the new pack. 03 July 2005, 20:08:40 UTC
960bba0 Add "--all" flag to rev-parse that shows all refs And make git-rev-list just silently ignore non-commit refs if we're not asking for all objects. 03 July 2005, 20:07:52 UTC
dade09c Add "has_sha1_pack()" function to query whether the object is available in a pack We'll want this for incremental packing. 03 July 2005, 20:06:36 UTC
c333038 Make git-fsck-cache check HEAD integrity In particular, check that it's a symlink, and points to refs/heads/. We depend on that these days not only for "git checkout", but also because fsck and others only check for references in the .git/refs/ subdirectory, not things like HEAD itself. 03 July 2005, 17:40:38 UTC
6da4016 Fix sparse warnings. Mainly making a lot of local functions and variables be marked "static", but there was a "zero as NULL" warning in there too. 03 July 2005, 17:10:45 UTC
9da07f3 cvsimport: Missing tests for verbosity flag. 03 July 2005, 17:03:30 UTC
44c9e85 Fix up header file dependencies and add sparse checking rules We're pretty sparse-clean already, thanks to earlier efforts, but some things inevitably creep in. 03 July 2005, 17:02:35 UTC
944d858 Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache It needed to take the GIT_DIR information into account, something that the original receive-pack usage just never cared about. 03 July 2005, 17:01:38 UTC
7ec4e60 Fix gcc warning in send-pack.c send_pack() was declared to return "int" (although nobody cared), but didn't actually return anything. 03 July 2005, 17:00:01 UTC
4d235c8 Avoid gcc warnings in sha1_file.c A couple of bogus "might be used undefined" warnings are avoided by moving the initializations unnecessarily early. 03 July 2005, 16:58:44 UTC
3415539 Support :ext: access method. 03 July 2005, 11:02:06 UTC
8d0ea31 Honour CVS_SERVER. 03 July 2005, 10:26:51 UTC
a92bebe git-cvsimport-script: clean up documentation Remove documentation of irrelevant "type" option. Signed-off-by: Sven Verdoolaege <skimo@kotnet.org> 03 July 2005, 09:40:45 UTC
f9714a4 Make specification of CVS module to convert optional. If we're inside a checked out CVS repository, there is no need to explicitly specify the module as it is available in CVS/Repository. Also read CVS/Root if it's available and -d is not specified. Finally, explicitly pass root to cvsps as CVS/Root takes precedence over CVSROOT. Signed-off-by: Sven Verdoolaege <skimo@kotnet.org> 03 July 2005, 09:40:44 UTC
1cd3674 Fixed a typo in Documentation/git-cvsimport-script.txt. 03 July 2005, 07:43:00 UTC
back to top