MCPcopy Create free account
hub / github.com/Murmele/Gittyup / stashes

Method stashes

src/git/Repository.cpp:802–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800Reference Repository::stashRef() const { return lookupRef("refs/stash"); }
801
802QList<Commit> Repository::stashes() const {
803 QList<Id> ids;
804 git_stash_foreach(d->repo, insert_stash_id, &ids);
805
806 QList<Commit> commits;
807 foreach (const Id &id, ids) {
808 git_commit *commit = nullptr;
809 if (!git_commit_lookup(&commit, d->repo, id))
810 commits.append(Commit(commit));
811 }
812
813 return commits;
814}
815
816Commit Repository::stash(const QString &message) {
817 Signature signature = defaultSignature();

Callers 4

updateModelMethod · 0.80
applyStashMethod · 0.80
dropStashMethod · 0.80
popStashMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected