Ben Straub
b31667fb69
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_*.
2012-07-27 20:31:05 -07:00
Ben Straub
4d83399d35
Adjust for msvc pedantry.
2012-07-27 11:55:58 -07:00
Ben Straub
8a155a044b
Fix mismatched git_branch_create args.
2012-07-27 11:49:34 -07:00
Ben Straub
7affe23db0
Use new git_remote_update_tips signature.
2012-07-27 11:23:44 -07:00
Ben Straub
b401bace1b
Restructure for better checkout options
...
* Removed the #define for defaults
* Promoted progress structure to top-level API call
argument
2012-07-26 13:12:21 -07:00
Ben Straub
ef9905c990
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.
2012-07-26 12:58:44 -07:00
Ben Straub
d024419f16
Add git_path_is_empty_dir.
2012-07-11 10:40:53 -07:00
Ben Straub
c3b5099fe4
Add git_path_is_dot_or_dotdot.
...
Also, remove some duplication in the clone test
suite.
2012-07-11 10:10:31 -07:00
Ben Straub
1c7eb971ac
Reindent.
2012-07-10 12:04:23 -07:00
Ben Straub
ea8178638c
Tabify.
2012-07-09 20:32:42 -07:00
Ben Straub
2b63db4cbb
Clone: update index to HEAD.
...
git_clone now produces a repo that
`git status` reports as clean!
2012-06-25 16:04:59 -07:00
Ben Straub
830388a728
Clone: non-empty-dir test, now for Win32.
2012-06-21 20:07:32 -07:00
Ben Straub
acdd3d959b
Clone: allow empty dirs.
2012-06-21 19:51:56 -07:00
Ben Straub
cb2dc0b0f8
Clone: replace one hardcoded value with another.
2012-06-21 13:37:08 -07:00
Ben Straub
14741d62d9
Clone: new home for git_checkout_force.
2012-06-21 11:13:19 -07:00
Ben Straub
941611153a
Clone: minor cleanup and whitespace.
2012-06-21 10:34:11 -07:00
Ben Straub
af58ec9e8d
Clone: prefer "master" as default branch.
2012-06-21 09:53:45 -07:00
Ben Straub
4fbc899acf
Clone: local branch for remote HEAD.
...
Now creating a local branch that tracks to the
origin's HEAD branch, and setting HEAD to that.
2012-06-21 09:53:45 -07:00
Ben Straub
8340dd5d5f
Clone: remove fragile path-handling code.
...
Also standardized on 3-space indentation. Sorry
about that.
2012-06-21 09:53:45 -07:00
Ben Straub
f2a855d5fe
Clone: restructure.
2012-06-21 09:53:44 -07:00
Ben Straub
bb1f6087e4
Add progress reporting to clone.
2012-06-21 09:53:44 -07:00
Ben Straub
764df57e82
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.
2012-06-21 09:53:44 -07:00