src/clone.c


Log

Author Commit Date CI Message
Russell Belfer 4c47a8bc 2012-10-17T14:14:51 Merge pull request #968 from arrbee/diff-support-typechange Support TYPECHANGE records in status and adjust checkout accordingly
nulltoken c4f68b32 2012-10-15T07:06:22 clone: fix detection of remote HEAD
nulltoken 4d968f13 2012-10-15T06:12:57 clone: Explicit support of no-checkout option
Russell Belfer 0d64bef9 2012-10-05T15:56:57 Add complex checkout test and then fix checkout This started as a complex new test for checkout going through the "typechanges" test repository, but that revealed numerous issues with checkout, including: * complete failure with submodules * failure to create blobs with exec bits * problems when replacing a tree with a blob because the tree "example/" sorts after the blob "example" so the delete was being processed after the single file blob was created This fixes most of those problems and includes a number of other minor changes that made it easier to do that, including improving the TYPECHANGE support in diff/status, etc.
Michael Schubert aa4437f6 2012-10-09T00:51:43 Fix compiler warnings * tests-clar/status: remove an unused variable * clone: fix -Wmaybe-uninitialized warning
nulltoken bf0e62a2 2012-10-07T12:50:18 clone: fix cloning of empty repository
nulltoken d280c71b 2012-09-26T19:22:21 clone: leverage refspec transform
nulltoken 70edc1b0 2012-09-26T11:05:12 clone: align type casing with convention
nulltoken 7eca3c56 2012-09-22T12:50:18 clone: deploy git_repository_set_head() usage
nulltoken 096d9e94 2012-10-07T21:00:46 remote: use constants for well-known names
nulltoken 74a24005 2012-09-21T10:28:20 refs: use constants for well-known names
nulltoken 3aa443a9 2012-08-20T16:56:45 checkout: introduce git_checkout_tree()
Russell Belfer f4ea176f 2012-09-14T10:31:40 Remove unnecessary include I don't think clone.c needs in #include dirent.h and it is not portable, so let's just get rid of it.
nulltoken 35d2e449 2012-08-20T11:26:02 checkout: cleanup misplaced declaration
Ben Straub aa549d32 2012-08-01T15:09:05 Clean up a TODO comment.
Ben Straub b31667fb 2012-07-27T20:29:06 Checkout: add head- and ref-centric checkouts. Renamed git_checkout_index to what it really was, and removed duplicate code from clone.c. Added git_checkout_ref, which updates HEAD and hands off to git_checkout_head. Added tests for the options the caller can pass to git_checkout_*.
Ben Straub 4d83399d 2012-07-27T11:55:58 Adjust for msvc pedantry.
Ben Straub 8a155a04 2012-07-27T11:49:34 Fix mismatched git_branch_create args.
Ben Straub 7affe23d 2012-07-27T11:23:44 Use new git_remote_update_tips signature.
Ben Straub b401bace 2012-07-26T13:12:21 Restructure for better checkout options * Removed the #define for defaults * Promoted progress structure to top-level API call argument
Ben Straub ef9905c9 2012-07-26T12:58:44 checkout: introduce git_checkout_opts Refactor checkout into several more-sensible entry points, which consolidates common options into a single structure that may be passed around.
Ben Straub d024419f 2012-07-11T10:40:53 Add git_path_is_empty_dir.
Ben Straub c3b5099f 2012-07-11T10:10:31 Add git_path_is_dot_or_dotdot. Also, remove some duplication in the clone test suite.
Ben Straub 1c7eb971 2012-07-10T12:04:23 Reindent.
Ben Straub ea817863 2012-07-09T20:32:42 Tabify.
Ben Straub 2b63db4c 2012-06-25T16:04:59 Clone: update index to HEAD. git_clone now produces a repo that `git status` reports as clean!
Ben Straub 830388a7 2012-06-21T20:07:32 Clone: non-empty-dir test, now for Win32.
Ben Straub acdd3d95 2012-06-21T19:51:56 Clone: allow empty dirs.
Ben Straub cb2dc0b0 2012-06-21T13:37:08 Clone: replace one hardcoded value with another.
Ben Straub 14741d62 2012-06-21T11:13:19 Clone: new home for git_checkout_force.
Ben Straub 94161115 2012-06-21T10:34:11 Clone: minor cleanup and whitespace.
Ben Straub af58ec9e 2012-06-21T09:53:27 Clone: prefer "master" as default branch.
Ben Straub 4fbc899a 2012-06-20T20:51:32 Clone: local branch for remote HEAD. Now creating a local branch that tracks to the origin's HEAD branch, and setting HEAD to that.
Ben Straub 8340dd5d 2012-06-20T14:17:54 Clone: remove fragile path-handling code. Also standardized on 3-space indentation. Sorry about that.
Ben Straub f2a855d5 2012-06-19T20:37:12 Clone: restructure.
Ben Straub bb1f6087 2012-06-19T09:15:39 Add progress reporting to clone.
Ben Straub 764df57e 2012-06-15T13:14:43 Add git_clone and git_clone_bare. So far they only create a repo, setup the "origin" remote, and fetch. The API probably needs work as well; there's no way to get progress information at this point. Also uncovered a shortcoming; git_remote_download doesn't fetch over local transport.