1
0
mirror of https://github.com/git/git.git synced 2024-09-28 08:49:45 +02:00
git/vcs-svn
Jonathan Nieder 4f5de755a7 vcs-svn: introduce repo_read_path to check the content at a path
The repo_tree structure remembers, for each path in each revision, a
mode (regular file, executable, symlink, or directory) and content
(blob mark or directory structure).  Maintaining a second copy of all
this information when it's already in the target repository is
wasteful, it does not persist between svn-fe invocations, and most
importantly, there is no convenient way to transfer it from one
machine to another.  So it would be nice to get rid of it.

As a first step, let's change the repo_tree API to match fast-import's
read commands more closely.  Currently to read the mode for a path,
one uses

	repo_modify_path(path, new_mode, new_content);

which changes the mode and content as a side effect.  There is no
function to read the content at a path; add one.

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>
2011-03-07 00:56:50 -06:00
..
fast_export.c
fast_export.h
LICENSE
line_buffer.c vcs-svn: teach line_buffer about temporary files 2011-02-26 04:59:37 -06:00
line_buffer.h vcs-svn: teach line_buffer about temporary files 2011-02-26 04:59:37 -06:00
line_buffer.txt vcs-svn: teach line_buffer about temporary files 2011-02-26 04:59:37 -06:00
obj_pool.h
repo_tree.c vcs-svn: introduce repo_read_path to check the content at a path 2011-03-07 00:56:50 -06:00
repo_tree.h vcs-svn: introduce repo_read_path to check the content at a path 2011-03-07 00:56:50 -06:00
string_pool.c
string_pool.h
string_pool.txt
svndump.c Merge commit 'jn/svn-fe' of git://github.com/gitster/git into svn-fe 2011-02-26 05:21:29 -06:00
svndump.h
trp.h
trp.txt