| 800 | Reference Repository::stashRef() const { return lookupRef("refs/stash"); } |
| 801 | |
| 802 | QList<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 | |
| 816 | Commit Repository::stash(const QString &message) { |
| 817 | Signature signature = defaultSignature(); |
no outgoing calls
no test coverage detected