summaryrefslogtreecommitdiffstats
path: root/setup.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-16 21:51:05 +0100
committerJunio C Hamano <gitster@pobox.com>2010-12-16 21:51:05 +0100
commit620b89cd98219db33ce499c7f8e50d091fe9b598 (patch)
tree0838749541fdf9f5fe36466bddc6d3d4167a0248 /setup.c
parentMerge branch 'aa/status-hilite-branch' (diff)
parentget_sha1: teach ":$n:<path>" the same relative path logic (diff)
downloadgit-620b89cd98219db33ce499c7f8e50d091fe9b598.tar.xz
git-620b89cd98219db33ce499c7f8e50d091fe9b598.zip
Merge branch 'nd/extended-sha1-relpath'
* nd/extended-sha1-relpath: get_sha1: teach ":$n:<path>" the same relative path logic get_sha1: support relative path ":path" syntax Make prefix_path() return char* without const Conflicts: sha1_name.c
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 14f91e3935..91887a40b7 100644
--- a/setup.c
+++ b/setup.c
@@ -4,7 +4,7 @@
static int inside_git_dir = -1;
static int inside_work_tree = -1;
-const char *prefix_path(const char *prefix, int len, const char *path)
+char *prefix_path(const char *prefix, int len, const char *path)
{
const char *orig = path;
char *sanitized = xmalloc(len + strlen(path) + 1);