Hard to create a commit with current state of workdir
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 10.6k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
I was looking at the equivalent of git stash create and I couldn't find one. The closes I got was:
- Add all things to index
- Create a new commit
- Reload index from disk
However this seems a bit strange given that I need to undo changes. Even ability to create a temporary indecies associated with repo would make it nicer. Other - possibly more generic - way would be to allow apply diff to tree.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, entry point, or test is named. Start by comparing the requested behavior with git stash create and reviewing libgit2's index, tree, and diff concepts; determine whether temporary index state or applying a diff to a tree is the intended scope. Done requires a defined API and behavior for creating a commit from the workdir without the described index-reset workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, git
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100