]> git.proxmox.com Git - libgit2.git/commit - include/git2/commit.h
Remove redundant methods from the API
authorVicent Marti <tanoku@gmail.com>
Tue, 28 Jun 2011 17:15:48 +0000 (19:15 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 28 Jun 2011 17:36:27 +0000 (19:36 +0200)
commitd5afc0390c3ef919fcde23300d7aefdaeafa5daa
tree0b661ef8536266c5bf5de645025c8072bc35dc85
parent0b10c9ea6ef5d85d862edd044d96561c4fd16e9b
Remove redundant methods from the API

A bunch of redundant methods have been removed from the external API.

- All the reference/tag creation methods with `_f` are gone. The force
flag is now passed as an argument to the normal create methods.

- All the different commit creation methods are gone; commit creation
now always requires a `git_commit` pointer for parents and a `git_tree`
pointer for tree, to ensure that corrupted commits cannot be generated.

- All the different tag creation methods are gone; tag creation now
always requires a `git_object` pointer to ensure that tags are not
created to inexisting objects.
12 files changed:
include/git2/commit.h
include/git2/oid.h
include/git2/refs.h
include/git2/tag.h
src/commit.c
src/oid.c
src/refs.c
src/repository.c
src/tag.c
tests/t04-commit.c
tests/t08-tag.c
tests/t10-refs.c