Skip to content

Version without -HEAD on a tag - #651

Merged
hannesa2 merged 3 commits into
masterfrom
VersionWithout-head
Sep 15, 2026
Merged

hannesa2 merged 3 commits into
masterfrom
VersionWithout-head

Conversation

@hannesa2

Copy link
Copy Markdown
Contributor

On recent brew version, I see this
image
The -HEAD is pointless here.

During development I pointed out, that this line was >2200 characters, this was no more readable, so I extracted it to a script

@hannesa2
hannesa2 requested a lite review from Copilot September 15, 2026 16:57
@hannesa2 hannesa2 changed the title Version without -head on a tag Version without -HEAD on a tag Sep 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Guard the no-reachable-tags git describe call and explicitly apply the fallback.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR extracts Git-based version generation into a reusable script and removes the redundant -HEAD suffix.

Changes:

  • Adds detached-HEAD version handling.
  • Updates the Xcode build phase to invoke the script.
File summaries
File Summary
scripts/set-git-version-info.sh Implements version generation and plist updates; tagless checkouts may abort before the documented fallback.
GitX.xcodeproj/project.pbxproj Invokes the extracted versioning script.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/set-git-version-info.sh Resolved
hannesa2 and others added 2 commits September 15, 2026 19:08
Update version info script to handle missing tags.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@hannesa2

Copy link
Copy Markdown
Contributor Author

Screenshot differs: emulatorApi=arm64 with 4 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

00-commit-context-menu.pngscreenshot

01-history-view.pngscreenshot

02-main-window.pngscreenshot

03-staging-view.pngscreenshot

@hannesa2
hannesa2 merged commit 8c5643e into master Sep 15, 2026
3 checks passed
@hannesa2
hannesa2 deleted the VersionWithout-head branch September 15, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants