summaryrefslogtreecommitdiff
path: root/vcs-svn/repo_tree.h
diff options
context:
space:
mode:
authorDavid Barr <david.barr@cordelta.com>2011-03-22 17:52:17 -0500
committerJonathan Nieder <jrnieder@gmail.com>2011-03-22 18:01:48 -0500
commit7c5817d3ba111bb71a5d7e3c8526e0925f96c92d (patch)
tree27d8e622674ca0e7530cf3cf8dc17b75bb6c9c79 /vcs-svn/repo_tree.h
parentdce33c9c18e2987da1fe8ade67d27057bcb80a67 (diff)
downloadgit-7c5817d3ba111bb71a5d7e3c8526e0925f96c92d.tar.gz
vcs-svn: use strbuf for author, UUID, and URL
Use strbufs and strings instead of interned strings for values of rev, dump, and node fields that happen to be strings. After this change, the only remaining string_pool use is for paths in the repo_tree API and internals. Functional change: treat an empty author, UUID, or URL as none at all. So for example, in repos where the first revision has an empty svn:author property, the first rev will be treated as by "nobody" rather than by a person with empty name and email address created by prepending an @ sign to the repository UUID. Signed-off-by: David Barr <david.barr@cordelta.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'vcs-svn/repo_tree.h')
-rw-r--r--vcs-svn/repo_tree.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcs-svn/repo_tree.h b/vcs-svn/repo_tree.h
index 11d48c2444..a1b0e87651 100644
--- a/vcs-svn/repo_tree.h
+++ b/vcs-svn/repo_tree.h
@@ -17,8 +17,9 @@ void repo_add(uint32_t *path, uint32_t mode, uint32_t blob_mark);
uint32_t repo_read_path(const uint32_t *path);
uint32_t repo_read_mode(const uint32_t *path);
void repo_delete(uint32_t *path);
-void repo_commit(uint32_t revision, uint32_t author, char *log, uint32_t uuid,
- uint32_t url, long unsigned timestamp);
+void repo_commit(uint32_t revision, const char *author,
+ char *log, const char *uuid, const char *url,
+ long unsigned timestamp);
void repo_diff(uint32_t r1, uint32_t r2);
void repo_init(void);
void repo_reset(void);