summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-08-19 21:24:51 +0200
committernulltoken <emeric.fermas@gmail.com>2012-09-17 10:48:28 +0200
commitee8bb8ba649118c4abb09cb02bd3c02e60b98e06 (patch)
treebcbcdb7e25aac03a883de3f15de977192602e4da /include/git2
parente93af304112735f02bfeb0833b58ed8230de2371 (diff)
downloadlibgit2-ee8bb8ba649118c4abb09cb02bd3c02e60b98e06.tar.gz
reset: add support for GIT_RESET_HARD mode
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/reset.h3
-rw-r--r--include/git2/types.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/reset.h b/include/git2/reset.h
index cd263fa99..cdcfb7671 100644
--- a/include/git2/reset.h
+++ b/include/git2/reset.h
@@ -24,6 +24,9 @@ GIT_BEGIN_DECL
* Specifying a Mixed kind of reset will trigger a Soft reset and the index will
* be replaced with the content of the commit tree.
*
+ * Specifying a Hard kind of reset will trigger a Mixed reset and the working
+ * directory will be replaced with the content of the index.
+ *
* TODO: Implement remaining kinds of resets.
*
* @param repo Repository where to perform the reset operation.
diff --git a/include/git2/types.h b/include/git2/types.h
index d3a905372..26e9c57e7 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -173,6 +173,7 @@ typedef enum {
typedef enum {
GIT_RESET_SOFT = 1,
GIT_RESET_MIXED = 2,
+ GIT_RESET_HARD = 3,
} git_reset_type;
/** Valid modes for index and tree entries. */