Merge branch 'jk/index-pack-wo-repo-from-stdin'
[gitweb.git] / builtin / worktree.c
index d7d195cd9573f3644eff4b9fad921271c1212ad1..9a97e37a3fa53e730f0963f8f00bbca9f6d6efc6 100644 (file)
@@ -447,7 +447,7 @@ static int list(int ac, const char **av, const char *prefix)
        if (ac)
                usage_with_options(worktree_usage, options);
        else {
-               struct worktree **worktrees = get_worktrees(0);
+               struct worktree **worktrees = get_worktrees(GWT_SORT_LINKED);
                int path_maxlen = 0, abbrev = DEFAULT_ABBREV, i;
 
                if (!porcelain)