David Ebbo
unread,Apr 22, 2011, 2:34:53 AM4/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GitSharp
Been playing with GitSharp and loving it. But I'm not having much luck
performing a Checkout(). I run into problems in various scenarios, but
here is a simple one that shows some strangeness:
- On a simple test repo, make an (uncommitted) change to a file
- Try to revert the local change using GitSharp, with code like this
using (var repository = new Repository(@"D:\test")) {
repository.Branches["master"].Checkout();
}
Result:
Even though the change is reverted, running gitk shows that there is
still an empty list of 'Local uncommitted changes'.
This seems harmless in this case, but things get worse in more complex
scenarios that I can describe if needed (like trying to check out an
earlier revision). But since this basic scenario shows some
strangeness, I thought I'd start with that :)
Is there a problem with Checkout(), or am I not running it correctly?
thanks!
David