Skip to content
Discussion options

You must be logged in to vote

I did find a way to combine all these into a single invocation of jj, which is fast enough for my needs:

info=$(jj log -T 'empty++":"++description++"\n"' -r '@-|@' --no-graph --ignore-working-copy)

color=$FAINT_RED
if [ "$(echo "$info" | head -n1 | cut -d : -f1)" = true ]; then
	color=$FAINT_GREEN
fi
desc=$(echo "$info" | tail -n+2 | cut -d : -f2-)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jyn514
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant