Sync it2git with main iTerm2 repo (add git line/file count vars) - #20
Open
tsvikas wants to merge 1 commit into
Open
Sync it2git with main iTerm2 repo (add git line/file count vars)#20tsvikas wants to merge 1 commit into
tsvikas wants to merge 1 commit into
Conversation
This repo's copy of it2git had drifted behind the canonical version in gnachman/iTerm2 (OtherResources/Utilities/it2git). This brings it back in line. The change is purely additive: it adds the line_counts() and file_counts() helpers and sets five user vars (gitLinesInserted, gitLinesDeleted, gitFilesAdded, gitFilesModified, gitFilesDeleted) that the main repo already ships. Source: gnachman/iTerm2 @ e0417ffaf89c120ca3ba0e126b4d98c5e5e93ec6 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tsvikas
marked this pull request as ready for review
July 2, 2026 09:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sync
utilities/it2gitwith the canonical copy in the main iTerm2 repo (gnachman/iTerm2:OtherResources/Utilities/it2git).This repo's
it2githas drifted behind the main repo: it is missing the line-count and file-count reporting that the main copy already ships. The main copy is a strict superset, so this change is purely additive (no behavior is removed or altered).Missing pieces this adds
line_counts()andfile_counts()helper functions.gitLinesInserted,gitLinesDeletedgitFilesAdded,gitFilesModified,gitFilesDeletedThese let status-bar / prompt components show per-status change counts, matching the behavior users get from a current iTerm2 install.
How I verified
Diffed both current HEADs. The only difference is the additions above; there are no mirror-only lines, so copying the main copy over this one loses nothing:
Source:
gnachman/iTerm2@e0417ffaf89c120ca3ba0e126b4d98c5e5e93ec6.