Skip to content

Conversation

agileandy
Copy link

When working with agentic coding tools it is imperative to ensure the agent is working on the piece of code. Knowing git head is key to this.

This is a simple feature to shorten the cwd than add the git head info.

The change is theme aware so will blend in with the overall look and feel

- Add git utility module with branch and commit hash detection
- Implement path shortening for cleaner directory display
- Update status bar to show git info with theme-aware styling
- Add comprehensive tests for git functionality and path shortening
- Git info displays as 'branch@hash' next to shortened directory path
- Graceful fallback when not in git repository or git unavailable
- Display current git branch and commit hash in status bar
- Shorten long directory paths for cleaner UI
- Use theme-aware Info color for git information
- Graceful fallback when not in git repository
- Format: branch@hash (e.g. main@a1b2c3d)
@adamdotdevin
Copy link
Contributor

hey, not opposed to this idea, but the PR needs cleaning up if i'm going to take a look (deleted the README? other unrelated stuff in there)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants