summaryrefslogtreecommitdiff
path: root/src/refspec.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-20 19:13:47 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-20 19:45:40 +0200
commit1be680c4d0909ee5160292d7b56c4522c4bc309c (patch)
tree605d1eeee4933f727219d8c8d7fd8fd23a09c133 /src/refspec.h
parentbc6374eac485ab9ad9cfd7165b6d071c3dcb673a (diff)
downloadlibgit2-1be680c4d0909ee5160292d7b56c4522c4bc309c.tar.gz
refspec: unify the string and parsed data
It used to be separate as an attempt to make the querying easier, but it didn't work out that way, so put all the data together. Add git_refspec_string() as well to get the original string, which is now stored alongside the independent parts.
Diffstat (limited to 'src/refspec.h')
-rw-r--r--src/refspec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/refspec.h b/src/refspec.h
index 339d10eb2..29f4d5354 100644
--- a/src/refspec.h
+++ b/src/refspec.h
@@ -11,6 +11,7 @@
#include "buffer.h"
struct git_refspec {
+ char *string;
char *src;
char *dst;
unsigned int force :1,