]> git.proxmox.com Git - libgit2.git/commit
worktree: switch over worktree pruning to an opts structure
authorPatrick Steinhardt <ps@pks.im>
Tue, 2 May 2017 10:35:59 +0000 (12:35 +0200)
committerPatrick Steinhardt <ps@pks.im>
Fri, 5 May 2017 13:39:25 +0000 (15:39 +0200)
commit883eeb5f909f230822c0bc025d3f9ce79781de04
tree957edab7f83315a90e685dfcd4569fb889de0258
parent8264a30f4fbfce96f433f01fa6fe537e5cb3570d
worktree: switch over worktree pruning to an opts structure

The current signature of `git_worktree_prune` accepts a flags field to
alter its behavior. This is not as flexible as we'd like it to be when
we want to enable passing additional options in the future. As the
function has not been part of any release yet, we are still free to
alter its current signature. This commit does so by using our usual
pattern of an options structure, which is easily extendable without
breaking the API.
include/git2/worktree.h
src/worktree.c
tests/worktree/refs.c
tests/worktree/worktree.c