From: Nickolai Belakovski
lock_reason_valid is renamed to is_locked and lock_reason is removed as
a field of the worktree struct. Lock reason can be obtained instead by a
standalone function.
This is done in order to make the worktree struct more intuitive when it
is used elsewhere in the
From: Nickolai Belakovski
Clarify that these fields are to be considered implementation details
and direct the reader to use the is_worktree_locked function to retrieve
said information.
Signed-off-by: Nickolai Belakovski
---
worktree.h | 4 ++--
1 file changed, 2 insertions(+), 2
From: Nickolai Belakovski
A function prefixed with 'is_' would be expected to return a boolean,
however this function returns a string.
Signed-off-by: Nickolai Belakovski
---
builtin/worktree.c | 10 +-
worktree.c | 2 +-
worktree.h | 4 ++--
3 files changed, 8
. The
lock_reason_valid field was removed since a NULL/non-NULL value of
lock_reason accomplishes the same effect.
Some unused variables within worktree source code were removed.
Signed-off-by: Nickolai Belakovski
---
Notes:
Travis CI results: https://travis-ci.org/nbelakovski/git/builds/445500127
builtin
From: Nickolai Belakovski
In order to more clearly display which branches are active, the output
of git branch is modified to mark branches checkout out in a linked
worktree with a "+" and color them in a faint light green (in contrast
to the current branch, which will still be denoted with a
From: Nickolai Belakovski
Add an atom expressing whether the particular ref is checked out in a
linked worktree.
Signed-off-by: Nickolai Belakovski
---
ref-filter.c | 31 +++
t/t6302-for-each-ref-filter.sh | 15 +++
2 files changed, 46
of the changes introduced here.
I've split this work into two commits since the items are logically
separate.
CI results: https://travis-ci.org/nbelakovski/git/builds/453723727
Nickolai Belakovski (2):
ref-filter: add worktree atom
branch: Mark and colorize a branch differently if it is checked out
7 matches
Mail list logo