romkatv / romkatv/gitstatus

Support SHA-256 repos

Open
#411 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.8k
Forks
134
Avg merge
2d 18h
Merged PRs (30d)
1

Description

I have 2 repos initialized, the repo using SHA-256 for a hashing algorithm is not recognized by the vcs prompt.

test_repo - SHA-1
test_repo_256 - SHA-256

image

https://git-scm.com/docs/git-init#Documentation/git-init.txt---object-formatltformatgt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the two repositories named in the report, test_repo using SHA-1 and test_repo_256 using SHA-256. Start by tracing how the vcs prompt recognizes Git repositories and consult the linked git init object-format documentation. Done means SHA-256 repositories are recognized without regressing SHA-1 support.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, git
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.