]> git.proxmox.com Git - libgit2.git/commit - tests/submodule/status.c
Make submodules externally refcounted
authorRussell Belfer <rb@github.com>
Tue, 25 Mar 2014 16:14:48 +0000 (09:14 -0700)
committerRussell Belfer <rb@github.com>
Tue, 25 Mar 2014 16:14:48 +0000 (09:14 -0700)
commita15c7802c86cf995fa658ef0624c46d352ce9a81
tree25bebc086059abc13e74a3a8b4e461c0cf06dc64
parentf210cb5b1442f82e2f930909d8430f7cc6661c5f
Make submodules externally refcounted

`git_submodule` objects were already refcounted internally in case
the submodule name was different from the path at which it was
stored.  This makes that refcounting externally used as well, so
`git_submodule_lookup` and `git_submodule_add_setup` return an
object that requires a `git_submodule_free` when done.
15 files changed:
examples/status.c
include/git2/submodule.h
src/checkout.c
src/diff.c
src/diff_file.c
src/submodule.c
src/submodule.h
tests/diff/submodules.c
tests/stash/submodules.c
tests/status/submodules.c
tests/submodule/lookup.c
tests/submodule/modify.c
tests/submodule/status.c
tests/submodule/submodule_helpers.c
tests/submodule/submodule_helpers.h