module
Agate::Stash
Overview
Git stash operations (module-level, not a class).
Defined in:
agate/stash.crClass Method Summary
-
.apply(repo : Repository, index : Int32 = 0) : Nil
Applies a stash entry (does not remove it).
-
.drop(repo : Repository, index : Int32 = 0) : Nil
Removes a stash entry.
-
.foreach(repo : Repository, &block : StashEntry -> ) : Nil
Iterates over all stash entries.
-
.pop(repo : Repository, index : Int32 = 0) : Nil
Applies and removes a stash entry.
-
.save(repo : Repository, stasher : Signature, message : String | Nil = nil, flags : StashFlags = StashFlags::Default) : OID
Saves the current workdir state to the stash.
Class Method Detail
Applies a stash entry (does not remove it).
Iterates over all stash entries.
Applies and removes a stash entry.
def self.save(repo : Repository, stasher : Signature, message : String | Nil = nil, flags : StashFlags = StashFlags::Default) : OID
#
Saves the current workdir state to the stash.