Skip to content

Commit

Permalink
Improve branch context info & layout
Browse files Browse the repository at this point in the history
The goal with this is to improve the the branch context info that is
displayed when we run the gps ls command.

This involved rewording things to make things clearer in Git terms,
removing what seem to be needless words, and adding the concept of
showing how many patchs are in the patch stack with [ahead X].

[changelog]
added: [ahead X] to ls cmd branch context information
changed: ls cmd branch context info to be clearer

<!-- ps-id: 6030f154-9b60-415a-ab6f-2889dcd4c233 -->
  • Loading branch information
drewdeponte committed Oct 12, 2023
1 parent 5c08cc4 commit 691eeb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ps/public/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ pub fn list(color: bool) -> Result<(), ListError> {
.unwrap();

println!(
"Stack {} following {}\n",
&cur_patch_stack_branch_name, &cur_patch_stack_branch_upstream_name
"{} tracking {} [ahead {}]",
&cur_patch_stack_branch_name,
&cur_patch_stack_branch_upstream_name,
list_of_patches.len()
);

let list_of_patches_iter: Box<dyn Iterator<Item = _>> = if config.list.reverse_order {
Expand Down

0 comments on commit 691eeb3

Please sign in to comment.