Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a "Git changes" segment to the prompt #133

Merged
merged 3 commits into from
Dec 13, 2023
Merged

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Dec 8, 2023

wait for

changelog

  • refactor the short Git status into git/lib get-status
  • adds a segment containing Git changes

details

  • if there are no changes in the index, the prompt won't add anything.
  • if there are changes, they will appear after the (branch:commit) segment inside [...]
  • in order
    • staged changes will show up as one _
    • unstaged changes will show up as one !
    • untracked changes will show up as one ?

@amtoine amtoine added enhancement New feature or request sugar Related to the `nu-git-manager-sugar` module labels Dec 8, 2023
@amtoine amtoine marked this pull request as ready for review December 11, 2023 12:13
@amtoine amtoine merged commit 2dc21d5 into main Dec 13, 2023
4 checks passed
@amtoine amtoine deleted the add-git-changes-to-prompt branch December 13, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sugar Related to the `nu-git-manager-sugar` module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant