libgit2/include/git2
Carlos Martín Nieto 217c029b54 commit: safer commit creation with reference update
The current version of the commit creation and amend function are unsafe
to use when passing the update_ref parameter, as they do not check that
the reference at the moment of update points to what the user expects.

Make sure that we're moving history forward when we ask the library to
update the reference for us by checking that the first parent of the new
commit is the current value of the reference. We also make sure that the
ref we're updating hasn't moved between the read and the write.

Similarly, when amending a commit, make sure that the current tip of the
branch is the commit we're amending.
2014-04-30 00:41:37 +02:00
..
sys Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
attr.h Update docs for new callback return value behavior 2013-12-11 10:57:50 -08:00
blame.h Added function-based initializers for every options struct. 2014-03-05 21:49:23 -05:00
blob.h Const correctness! 2014-04-03 16:06:31 +02:00
branch.h Add GIT_BRANCH_ALL to git_branch_t enum 2014-04-16 18:51:16 +02:00
buffer.h Port tests from PR 1683 2013-09-17 09:31:45 -07:00
checkout.h git_checkout_opts -> git_checkout_options 2014-03-06 09:44:51 -08:00
cherrypick.h Added cherry-pick support 2014-04-14 16:16:21 +02:00
clone.h git_checkout_opts -> git_checkout_options 2014-03-06 09:44:51 -08:00
commit.h commit: safer commit creation with reference update 2014-04-30 00:41:37 +02:00
common.h opts: bits are not bytes 2014-03-24 13:21:51 +01:00
config.h config: use git_buf for returning paths 2014-01-27 04:44:05 +01:00
cred_helpers.h fixing headers with bad values for objective-c 2013-09-09 13:53:22 -04:00
diff.h Merge pull request #2291 from ethomson/patch_binary 2014-04-23 09:27:15 -07:00
errors.h Added cherry-pick support 2014-04-14 16:16:21 +02:00
filter.h Merge git_buf and git_buffer 2013-09-17 09:31:45 -07:00
graph.h Add git_graph_descendant_of. 2014-01-28 19:39:14 +01:00
ignore.h update copyrights 2013-01-08 17:31:27 -06:00
index.h Fix leak in git_index_conflict_cleanup 2014-04-17 14:43:46 -07:00
indexer.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
inttypes.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
merge.h Const correctness! 2014-04-03 16:06:31 +02:00
message.h messsage: use git_buf in prettify() 2014-01-27 04:44:06 +01:00
net.h No bitfields in public headers b/c packing is compiler-specific 2013-02-07 12:47:29 -05:00
notes.h note: rename the id getter to git_note_id() 2014-01-24 11:18:51 +01:00
object.h Merge pull request #2153 from mekishizufu/tag_example 2014-03-07 09:13:43 -08:00
odb_backend.h Take umask into account in filebuf_commit 2013-11-04 22:32:50 -05:00
odb.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
oid.h Make git_oid_equal a non-inline API 2014-02-20 11:00:31 -08:00
pack.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
patch.h Fix const-correctness of git_patch_get_delta, git_patch_num_hunks, git_patch_num_lines_in_hunk 2014-04-11 21:55:36 +02:00
pathspec.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
push.h Const correctness! 2014-04-03 16:06:31 +02:00
refdb.h Move git_reference__alloc to include/git2/sys 2013-04-21 12:52:17 -07:00
reflog.h reflog: remove git_reflog_append_to() 2013-11-23 14:55:02 +01:00
refs.h Const correctness! 2014-04-03 16:06:31 +02:00
refspec.h refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
remote.h Merge pull request #2284 from jacquesg/push-progress-callback 2014-04-25 02:10:19 -07:00
repository.h Added function-based initializers for every options struct. 2014-03-05 21:49:23 -05:00
reset.h Add reflog parameters to git_reset 2014-02-03 15:05:55 -08:00
revert.h Update git_merge_tree_opts to git_merge_options 2014-03-20 09:25:08 -07:00
revparse.h Some documentation improvements 2013-08-28 09:31:32 -07:00
revwalk.h Correcting format of comments in header file 2014-03-24 11:20:51 -07:00
signature.h Align git_signature_dup. 2014-01-14 21:33:35 +01:00
stash.h Update docs for new callback return value behavior 2013-12-11 10:57:50 -08:00
status.h Improve docs for status rename detection limits 2014-04-24 15:40:50 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
strarray.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
submodule.h Fix segfault if gitmodules is invalid 2014-03-26 14:38:26 -07:00
tag.h tag: Introduce git_tag_annotation_create() 2013-05-21 19:32:59 +02:00
threads.h update copyrights 2013-01-08 17:31:27 -06:00
trace.h Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
transport.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
tree.h tree: remove legacy 'oid' naming 2014-01-25 08:15:44 +01:00
types.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
version.h libgit2 0.20.0 "anmeldung" 2013-11-20 12:53:33 +01:00