diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-12-10 00:53:54 -0600 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2011-03-07 00:56:50 -0600 |
commit | e75316de5340e0ba3ac75937c59fa2c9d6ab48d7 (patch) | |
tree | 9b3b17b1f662c3a59db3fa5edbc4e0d4add851b1 /vcs-svn/repo_tree.h | |
parent | 5a38b186d3ac5840d6ae78511d6dccab8367f242 (diff) | |
download | git-e75316de5340e0ba3ac75937c59fa2c9d6ab48d7.tar.gz |
vcs-svn: simplify repo_modify_path and repo_copy
Restrict the repo_tree API to functions that are actually needed.
- decouple reading the mode and content of dirents from other
operations.
- remove repo_modify_path. It is only used to read the mode from
dirents.
- remove the ability to use repo_read_mode on a missing path. The
existing code only errors out in that case, anyway.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcs-svn/repo_tree.h b/vcs-svn/repo_tree.h index 3202bbeffe..11d48c2444 100644 --- a/vcs-svn/repo_tree.h +++ b/vcs-svn/repo_tree.h @@ -12,10 +12,10 @@ #define REPO_MAX_PATH_DEPTH 1000 uint32_t next_blob_mark(void); -uint32_t repo_copy(uint32_t revision, uint32_t *src, uint32_t *dst); +void repo_copy(uint32_t revision, const uint32_t *src, const uint32_t *dst); void repo_add(uint32_t *path, uint32_t mode, uint32_t blob_mark); -uint32_t repo_modify_path(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); |