module Agate::Stash

Overview

Git stash operations (module-level, not a class).

Defined in:

agate/stash.cr

Class Method Summary

Class Method Detail

def self.apply(repo : Repository, index : Int32 = 0) : Nil #

Applies a stash entry (does not remove it).


[View source]
def self.drop(repo : Repository, index : Int32 = 0) : Nil #

Removes a stash entry.


[View source]
def self.foreach(repo : Repository, &block : StashEntry -> ) : Nil #

Iterates over all stash entries.


[View source]
def self.pop(repo : Repository, index : Int32 = 0) : Nil #

Applies and removes a stash entry.


[View source]
def self.save(repo : Repository, stasher : Signature, message : String | Nil = nil, flags : StashFlags = StashFlags::Default) : OID #

Saves the current workdir state to the stash.


[View source]