diff options
| author | Russell Belfer <rb@github.com> | 2012-08-22 16:03:35 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-08-22 16:16:42 -0700 |
| commit | 85bd17462662905dfdf9247b262480280a616ad4 (patch) | |
| tree | 88454804c539284aa6cb216943d0a53b7cde211b /src/fileops.h | |
| parent | b769e936d0118b7c3870ffc082b44254164bfedd (diff) | |
| download | libgit2-85bd17462662905dfdf9247b262480280a616ad4.tar.gz | |
Some cleanup suggested during review
This cleans up a number of items suggested during code review
with @vmg, including:
* renaming "outside repo" config API to `git_config_open_default`
* killing the `git_config_open_global` API
* removing the `git_` prefix from the static functions in fileops
* removing some unnecessary functionality from the "cp" command
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/fileops.h b/src/fileops.h index 6f3450373..5c23ce30b 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -130,16 +130,14 @@ extern int git_futils_mktmp(git_buf *path_out, const char *filename); extern int git_futils_mv_withpath(const char *from, const char *to, const mode_t dirmode); /** - * Copy a file, creating the destination path if needed. + * Copy a file * - * The filemode will be used for the file and the dirmode will be used for - * any intervening directories if necessary. + * The filemode will be used for the newly created file. */ -extern int git_futils_cp_withpath( +extern int git_futils_cp( const char *from, const char *to, - mode_t filemode, - mode_t dirmode); + mode_t filemode); /** * Flags that can be passed to `git_futils_cp_r`. |
