From: Junio C Hamano Date: Tue, 17 Jan 2017 22:49:27 +0000 (-0800) Subject: Merge branch 'nd/worktree-list-fixup' into maint X-Git-Tag: v2.11.1~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=430fd1cae522d1eff58478eb606bee996b52208f;p=thirdparty%2Fgit.git Merge branch 'nd/worktree-list-fixup' into maint The output from "git worktree list" was made in readdir() order, and was unstable. * nd/worktree-list-fixup: worktree list: keep the list sorted worktree.c: get_worktrees() takes a new flag argument get_worktrees() must return main worktree as first item even on error worktree: reorder an if statement worktree.c: zero new 'struct worktree' on allocation --- 430fd1cae522d1eff58478eb606bee996b52208f