diff options
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`. |
