summaryrefslogtreecommitdiff
path: root/include/git2/index.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-05-15 15:47:46 -0700
committerVicent Martí <vicent@github.com>2013-05-15 15:47:46 -0700
commit71596200443cdefb374750a1922dc9e1d0be7d53 (patch)
treeef793279cec76aae5b7a4c0aa0d36d770ac2fc1a /include/git2/index.h
parent6957f73cc1d484dd6514596e73255e635db60f0f (diff)
parent72b3dd4a5ca2f6572e741c243cd973963d0ef419 (diff)
downloadlibgit2-71596200443cdefb374750a1922dc9e1d0be7d53.tar.gz
Merge pull request #1588 from arrbee/fixes-for-checkout-and-diff
Bug fixes for checkout and diff
Diffstat (limited to 'include/git2/index.h')
-rw-r--r--include/git2/index.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h
index d23c3a8ea..bde38a9dd 100644
--- a/include/git2/index.h
+++ b/include/git2/index.h
@@ -57,6 +57,8 @@ GIT_BEGIN_DECL
#define GIT_IDXENTRY_EXTENDED_FLAGS (GIT_IDXENTRY_INTENT_TO_ADD | GIT_IDXENTRY_SKIP_WORKTREE)
+#define GIT_IDXENTRY_STAGE(E) (((E)->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT)
+
/** Time used in a git index entry */
typedef struct {
git_time_t seconds;