summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorJakob Pfender <jpfender@elegosoft.com>2011-06-07 11:11:09 +0200
committerJakob Pfender <jpfender@elegosoft.com>2011-06-07 12:54:43 +0200
commitb74c867a1acfdc5ef0cfa91ba49d3f52d0ac6237 (patch)
treed09b69ed8bba7a60cc337579fd4c47dd9bd5f2ff /src/commit.c
parentcbf4f9f41f18bdb812fb854cd7fd8c4ce62ed44a (diff)
downloadlibgit2-b74c867a1acfdc5ef0cfa91ba49d3f52d0ac6237.tar.gz
blob: Stat path inside git_blob_create_fromfile
00582bc introduced a change that required the caller of git_blob_create_fromfile() to pass a struct stat with the stat information for the file. Several developers pointed out that this would make life hard for the bindings developers as struct stat isn't widely supported by other languages. Make git_blob_create_fromfile() stat the path itself, eliminating the need for the file to be stat'ed by the caller. This makes index_init_entry() more costly as the file will be stat'ed twice but makes life easier for everyone else.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions