worktree: remove extra members from struct add_opts
authorThomas Gummerer <t.gummerer@gmail.com>
Tue, 24 Apr 2018 21:56:32 +0000 (22:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2018 00:06:34 +0000 (09:06 +0900)
commitd861d34a6ed0d04cef99ad2bdf3fdd3b23cee63a
tree47eb94ec3ab65d3ba1cfe0ff7ea939b38dee910c
parent5be1f00a9a701532232f57958efab4be8c959a29
worktree: remove extra members from struct add_opts

There are two members of 'struct add_opts', which are only used inside
the 'add()' function, but being part of 'struct add_opts' they are
needlessly also passed to the 'add_worktree' function.

Make them local to the 'add()' function to make it clearer where they
are used.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c