]> git.proxmox.com Git - libgit2.git/commit - src/checkout.h
Rework checkout internals (again)
authorRussell Belfer <rb@github.com>
Thu, 6 Dec 2012 21:36:17 +0000 (13:36 -0800)
committerRussell Belfer <rb@github.com>
Fri, 4 Jan 2013 23:47:42 +0000 (15:47 -0800)
commitcf208031705388a2d1907fb9ec409ff22179f380
tree264c79be7de58b468b02c56979e4c8765556f934
parentbfe7d7de226e91c7ed99b68fc447aa0bcd5182ab
Rework checkout internals (again)

I've tried to map out the detailed behaviors of checkout and make
sure that we're handling the various cases correctly, along with
providing options to allow us to emulate "git checkout" and "git
checkout-index" with the various flags.  I've thrown away flags
in the checkout API that seemed like clutter and added some new
ones.  Also, I've converted the conflict callback to a general
notification callback so we can emulate "git checkout" output and
display "dirty" files.

As of this commit, the new behavior is not working 100% but some
of that is probably baked into tests that are not testing the
right thing.  This is a decent snapshot point, I think, along the
way to getting the update done.
include/git2/checkout.h
src/checkout.c
src/checkout.h [new file with mode: 0644]
src/stash.c
tests-clar/checkout/head.c
tests-clar/checkout/index.c
tests-clar/checkout/tree.c
tests-clar/checkout/typechange.c
tests-clar/reset/hard.c