summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-07-06Make "insert_by_date()" match "commit_list_insert()"Linus Torvalds
Same argument order, same return type. This allows us to use a function pointer to choose one over the other.
2005-07-06[PATCH] Change the sed seperator in t/t6000-lib.sh.Jon Seymour
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>
2005-07-06[PATCH] Introduce unit tests for git-rev-list --bisectJon Seymour
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>
2005-07-06[PATCH] Factor out useful test case infrastructure from t/t6001... into ↵Jon Seymour
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>
2005-07-06[PATCH] Fix fd leak in git-cvsimport-scriptSven Verdoolaege
Remember to close temporary file Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-06[PATCH] sha1_file.c;prepare_packed_git_one() - fix DIR leakJunio C Hamano
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>
2005-07-06Merge master.kernel.org:/pub/scm/gitk/gitkLinus Torvalds
2005-07-06Fix up path-cleanup in git_path() properlyLinus Torvalds
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.
2005-07-06Increase the number of possible heads requested from git-upload-packLinus Torvalds
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.
2005-07-06Add a "git-show-index" helper that shows the contents of a pack indexLinus Torvalds
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.
2005-07-06Don't special-case a zero-sized compression.Linus Torvalds
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.
2005-07-05Make "git clone" use the new git-clone-packLinus Torvalds
2005-07-05Add "git-clone-pack" program to help with "git clone"Linus Torvalds
2005-07-05Fix silly thinko in "head_ref()"Linus Torvalds
It did a "for_each_ref()" in addition to the HEAD case, which was a left-over from an early broken test.
2005-07-05Move "get_ack()" to common git_connect functionsLinus Torvalds
git-clone-pack will want it too. Soon.
2005-07-05Remove multi-head support from fetch-packLinus Torvalds
It was a misguided attempt to mix fetching and cloning. I'll make a separate clone thing.
2005-07-05Remove unnecessary usage of strncmp() in git-rev-list arg parsing.Linus Torvalds
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.
2005-07-05Merge head 'cvs2git' of http://netz.smurf.noris.de/git/gitLinus Torvalds
2005-07-05Work around git-http-pull breakage in git-fetch-scriptLinus Torvalds
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.
2005-07-05git-fetch-script: use git-fetch-pack for local and ssh fetches.Linus Torvalds
Also, clean it up a lot.
2005-07-05Add "git_path()" and "head_ref()" helper functions.Linus Torvalds
"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.
2005-07-05Merge with Linus' current treeMatthias Urlichs
2005-07-05Merge with http://www.liacs.nl/~sverdool/git.git#cvs2gitMatthias Urlichs
2005-07-05cvsimport: getopt accepted a -q option (undocumented and unused).Matthias Urlichs
Removed.
2005-07-05git-cvsimport-script: move working directory forwardSven Verdoolaege
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.
2005-07-04git-rev-list: make sure the output is sorted by recencyLinus Torvalds
We didn't sort the refs by date, so if you had multiple refs, the end result would not be properly sorted.
2005-07-04Make rev-list flush the stdio buffers after each rev.Linus Torvalds
We'd rather get the revisions in a slow but timely manner than have to wait for them.
2005-07-04Make git-fetch-pack actually do all the unpacking etc.Linus Torvalds
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.
2005-07-04Make git-fetch-pack and git-upload-pack negotiate needs/haves fullyLinus Torvalds
Now the only piece missing is actually generating the pack-file.
2005-07-04Clean up output of "for_each_ref()" when GIT_DIR is "."Linus Torvalds
Remove the "./" at the head, it just looks much nicer.
2005-07-04git-cvsimport-script: remove unused variableSven Verdoolaege
2005-07-04Commit first cut at "git-fetch-pack"Linus Torvalds
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.
2005-07-04Move ref path matching to connect.c libraryLinus Torvalds
It's a generic thing for matching refs from the other side.
2005-07-04Factor out the ssh connection stuff from send-pack.cLinus Torvalds
I want to use it for git-fetch-pack too.
2005-07-04git-cvsimport-script: more error handlingSven Verdoolaege
2005-07-04[PATCH] Fixup t/t5300 unit tests broken by ↵Jon Seymour
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>
2005-07-04git-cvsimport-script: provide direct support for cvsps -z optionSven Verdoolaege
2005-07-04git-cvsimport-script: update cvsps cache instead of rebuilding itSven Verdoolaege
Updating the cache is sufficient for most purposes. If users really want to rebuild the cache, they can specify the option themselves.
2005-07-04git-cvsimport-script: fix branch switchingSven Verdoolaege
Previous patch broke branch switching.
2005-07-04git-cvsimport-script: use private index.Sven Verdoolaege
2005-07-04git-rev-parse: support show sha1 names for pack entriesLinus Torvalds
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.
2005-07-04Make git-rev-parse support cogito-style "short hex names"Linus Torvalds
Currently only for unpacked objects, but the infrastructure is there to do it for packed objects too.
2005-07-03git-cvsimport-script: leave working directory alone.Sven Verdoolaege
2005-07-03Make the name of a pack-file depend on the objects packed there-in.Linus Torvalds
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.
2005-07-03git-cvsimport-script: typo head -> headsSven Verdoolaege
2005-07-03Add "git-prune-packed" that removes objects that exist in a pack.Linus Torvalds
This, together with "git repack" can be used to clean up unpacked git archives.
2005-07-03Add "git repack" command that does an incremental packLinus Torvalds
2005-07-03Add "--non-empty" flag to git-pack-objectsLinus Torvalds
It skips writing the pack-file if it ends up being empty.
2005-07-03"git rev-list --unpacked" shows only unpacked commitsLinus Torvalds
More infrastructure to do efficient incremental packs.
2005-07-03Add "--incremental" flag to git-pack-objectsLinus Torvalds
It won't add an object that is already in a pack to the new pack.