summaryrefslogtreecommitdiff
path: root/src/refspec.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-09-27 12:04:41 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-09-30 11:56:37 +0200
commit3665ba8eeb4f8b2546517cd208e940b128dd8a46 (patch)
treef745ef0b1c5187ee1008ae8ee2ae47090443d560 /src/refspec.h
parent2af1c266415bd2030cdfef8ec170a6c135e12b75 (diff)
downloadlibgit2-3665ba8eeb4f8b2546517cd208e940b128dd8a46.tar.gz
refspec: add git_refspec__free, remove git_refspec_parse
The latter shouldn't be exposed and isn't used, git_refspec__parse supersedes it. Fix a leak in the refspec tests while we're at it.
Diffstat (limited to 'src/refspec.h')
-rw-r--r--src/refspec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/refspec.h b/src/refspec.h
index 2f46b3e59..83078151b 100644
--- a/src/refspec.h
+++ b/src/refspec.h
@@ -25,6 +25,8 @@ int git_refspec__parse(
const char *str,
bool is_fetch);
+void git_refspec__free(git_refspec *refspec);
+
/**
* Transform a reference to its target following the refspec's rules,
* and writes the results into a git_buf.