forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
survey: add strintmap to count observed refs by prefix
Create a `struct strintmap` to count the set of observed refs by prefix, such as "refs/heads/" or refs/remotes/origin/". Print an "observed" section in both pretty and JSON formats. NEEDSWORK: The new observed map overlaps a little with the existing `prw->want_<class>` and `prs->cnt_<class>` fields, so maybe we should refactor the older fields. NEEDSWORK: Also, the `--all-refs` flag is a little cumbersome as more custom classes (like `--pull` and `--prefetch`) are added. It might now be simpler to just have `--all-refs` request `refs/` knowing that the counting will be handled by the refsmap now. Signed-off-by: Jeff Hostetler <jeffhostetler@github.com>
- Loading branch information
1 parent
376492b
commit a3538cf
Showing
1 changed file
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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