summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-07-05Move "get_ack()" to common git_connect functionsLibravatar Linus Torvalds3-18/+20
git-clone-pack will want it too. Soon.
2005-07-05Remove multi-head support from fetch-packLibravatar Linus Torvalds1-38/+3
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.Libravatar Linus Torvalds1-2/+2
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/gitLibravatar Linus Torvalds5-367/+831
2005-07-05Work around git-http-pull breakage in git-fetch-scriptLibravatar Linus Torvalds1-1/+2
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.Libravatar Linus Torvalds1-33/+18
Also, clean it up a lot.
2005-07-05Add "git_path()" and "head_ref()" helper functions.Libravatar Linus Torvalds7-14/+37
"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 treeLibravatar Matthias Urlichs5-367/+831
2005-07-05Merge with http://www.liacs.nl/~sverdool/git.git#cvs2gitLibravatar Matthias Urlichs1-54/+95
2005-07-05cvsimport: getopt accepted a -q option (undocumented and unused).Libravatar Matthias Urlichs1-1/+1
Removed.
2005-07-05git-cvsimport-script: move working directory forwardLibravatar Sven Verdoolaege1-5/+27
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 recencyLibravatar Linus Torvalds1-1/+1
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.Libravatar Linus Torvalds1-1/+2
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.Libravatar Linus Torvalds2-25/+100
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 fullyLibravatar Linus Torvalds2-10/+116
Now the only piece missing is actually generating the pack-file.
2005-07-04Clean up output of "for_each_ref()" when GIT_DIR is "."Libravatar Linus Torvalds1-0/+5
Remove the "./" at the head, it just looks much nicer.
2005-07-04git-cvsimport-script: remove unused variableLibravatar Sven Verdoolaege1-2/+0
2005-07-04Commit first cut at "git-fetch-pack"Libravatar Linus Torvalds3-4/+216
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 libraryLibravatar Linus Torvalds3-21/+22
It's a generic thing for matching refs from the other side.
2005-07-04Factor out the ssh connection stuff from send-pack.cLibravatar Linus Torvalds4-74/+92
I want to use it for git-fetch-pack too.
2005-07-04git-cvsimport-script: more error handlingLibravatar Sven Verdoolaege1-2/+3
2005-07-04[PATCH] Fixup t/t5300 unit tests broken by ↵Libravatar Jon Seymour1-15/+15
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 optionLibravatar Sven Verdoolaege1-4/+5
2005-07-04git-cvsimport-script: update cvsps cache instead of rebuilding itLibravatar Sven Verdoolaege1-1/+1
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 switchingLibravatar Sven Verdoolaege1-1/+2
Previous patch broke branch switching.
2005-07-04git-cvsimport-script: use private index.Libravatar Sven Verdoolaege1-20/+23
2005-07-03git-rev-parse: support show sha1 names for pack entriesLibravatar Linus Torvalds1-0/+49
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-03Make git-rev-parse support cogito-style "short hex names"Libravatar Linus Torvalds1-3/+76
Currently only for unpacked objects, but the infrastructure is there to do it for packed objects too.
2005-07-04git-cvsimport-script: leave working directory alone.Libravatar Sven Verdoolaege1-33/+48
2005-07-03Make the name of a pack-file depend on the objects packed there-in.Libravatar Linus Torvalds2-17/+20
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 -> headsLibravatar Sven Verdoolaege1-1/+1
2005-07-03Add "git-prune-packed" that removes objects that exist in a pack.Libravatar Linus Torvalds2-1/+68
This, together with "git repack" can be used to clean up unpacked git archives.
2005-07-03Add "git repack" command that does an incremental packLibravatar Linus Torvalds2-1/+19
2005-07-03Add "--non-empty" flag to git-pack-objectsLibravatar Linus Torvalds1-0/+7
It skips writing the pack-file if it ends up being empty.
2005-07-03"git rev-list --unpacked" shows only unpacked commitsLibravatar Linus Torvalds1-0/+11
More infrastructure to do efficient incremental packs.
2005-07-03Add "--incremental" flag to git-pack-objectsLibravatar Linus Torvalds1-1/+9
It won't add an object that is already in a pack to the new pack.
2005-07-03Add "--all" flag to rev-parse that shows all refsLibravatar Linus Torvalds2-3/+14
And make git-rev-list just silently ignore non-commit refs if we're not asking for all objects.
2005-07-03Add "has_sha1_pack()" function to query whether the object is available in a ↵Libravatar Linus Torvalds2-0/+7
pack We'll want this for incremental packing.
2005-07-03Make git-fsck-cache check HEAD integrityLibravatar Linus Torvalds1-0/+26
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.
2005-07-03Fix sparse warnings.Libravatar Linus Torvalds9-18/+18
Mainly making a lot of local functions and variables be marked "static", but there was a "zero as NULL" warning in there too.
2005-07-03cvsimport: Missing tests for verbosity flag.Libravatar Matthias Urlichs1-2/+2
2005-07-03Fix up header file dependencies and add sparse checking rulesLibravatar Linus Torvalds1-1/+10
We're pretty sparse-clean already, thanks to earlier efforts, but some things inevitably creep in.
2005-07-03Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cacheLibravatar Linus Torvalds4-63/+18
It needed to take the GIT_DIR information into account, something that the original receive-pack usage just never cared about.
2005-07-03Fix gcc warning in send-pack.cLibravatar Linus Torvalds1-0/+1
send_pack() was declared to return "int" (although nobody cared), but didn't actually return anything.
2005-07-03Avoid gcc warnings in sha1_file.cLibravatar Linus Torvalds1-4/+4
A couple of bogus "might be used undefined" warnings are avoided by moving the initializations unnecessarily early.
2005-07-03Support :ext: access method.Libravatar Sven Verdoolaege2-3/+23
2005-07-03Honour CVS_SERVER.Libravatar Sven Verdoolaege1-1/+3
2005-07-03git-cvsimport-script: clean up documentationLibravatar Sven Verdoolaege1-8/+0
Remove documentation of irrelevant "type" option. Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
2005-07-03Make specification of CVS module to convert optional.Libravatar Sven Verdoolaege2-9/+27
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>
2005-07-03Fixed a typo in Documentation/git-cvsimport-script.txt.Libravatar Sven Verdoolaege1-1/+1