libgit2/include/git2
Jakob Pfender 4d7905c579 blob: Require stat information for git_blob_create_fromfile()
In order to be able to write symlinks with git_blob_create_fromfile(),
we need to check whether the file to be written is a symbolic link or
not. Since the calling function of git_blob_create_fromfile() is likely to have
stated the file before calling, we make it pass the stat.

The reason for this is that writing symbolic link blobs is significantly
different from writing ordinary files - we do not want to open the link
destination but instead want to write the link itself, regardless of
whether it exists or not.

Previously, index_init_entry() used to error out if the file to be added
was a symlink that pointed to a nonexistent file. Fix this behaviour to
add the file regardless of whether it exists. This mimics git.git's
behaviour.
2011-06-07 12:54:36 +02:00
..
blob.h blob: Require stat information for git_blob_create_fromfile() 2011-06-07 12:54:36 +02:00
commit.h Added methods to search objects of different types 2011-06-06 11:55:48 +02:00
common.h Move all error-related defines to git2/errors.h 2011-05-11 00:40:07 +03:00
config.h config: Cleanup & renaming of the external API 2011-05-20 03:20:12 +03:00
errors.h Added error for ambiguous oid prefixes. Added methods to compare the first nth hexadecimal characters (i.e. packets of 4 bits) of OIDs. 2011-06-01 23:40:41 +02:00
index.h Index: API uniformisation: Use unsigned int for all index number. 2011-06-05 21:19:03 +02:00
object.h short-oid: Cleanup 2011-06-01 23:40:42 +02:00
odb_backend.h short-oid: Cleanup 2011-06-01 23:40:42 +02:00
odb.h short-oid: Cleanup 2011-06-01 23:40:42 +02:00
oid.h Renamed git_oid_match to git_oid_ncmp. 2011-06-06 17:04:37 +02:00
refs.h Enforce coding conventions in refs.c 2011-03-29 19:58:19 +03:00
repository.h repository: Export all internal paths 2011-06-04 20:45:09 +02:00
revwalk.h Fix headers for the new Revision Walker 2011-03-16 23:59:09 +02:00
signature.h Rename git_signature_new_now 2011-04-09 15:31:12 -07:00
tag.h Added methods to search objects of different types 2011-06-06 11:55:48 +02:00
thread-utils.h threads: Cleanup TLS declarations 2011-06-07 03:39:19 +02:00
tree.h Merge pull request #240 from Romain-Geissler/tree-object-type 2011-06-06 18:33:38 -07:00
types.h config: Cleanup & renaming of the external API 2011-05-20 03:20:12 +03:00
zlib.h Move the external includes folder from src to include 2011-03-03 20:23:53 +02:00