gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.RebaseOperation

Contents

Description

Represents a rebase operation.

Synopsis

Exported types

newtype RebaseOperation Source #

Memory-managed wrapper type.

Methods

getExec

rebaseOperationGetExec Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RebaseOperation

rebaseOperation: a RebaseOperation.

-> m (Maybe Text)

Returns: the executable the user has requested be run or Nothing.

Gets the executable the user has requested be run. This will only be populated for operations of type gGITREBASEOPERATIONEXEC.

getId

rebaseOperationGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RebaseOperation

rebaseOperation: a RebaseOperation.

-> m (Maybe OId)

Returns: the commit ID being cherry-picked or Nothing.

Gets the commit ID being cherry-picked. This will be populated for all operations except those of type gGITREBASEOPERATIONEXEC.

getOperationType

rebaseOperationGetOperationType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RebaseOperation

rebaseOperation: a RebaseOperation.

-> m RebaseOperationType

Returns: a RebaseOperationType.

Gets the type of rebase operation.

ref

rebaseOperationRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RebaseOperation

rebaseOperation: a RebaseOperation.

-> m (Maybe RebaseOperation)

Returns: a newly allocated RebaseOperation or Nothing.

Atomically increments the reference count of rebaseOperation by one. This function is MT-safe and may be called from any thread.

unref

rebaseOperationUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RebaseOperation

rebaseOperation: a RebaseOperation.

-> m () 

Atomically decrements the reference count of rebaseOperation by one. If the reference count drops to 0, rebaseOperation is freed.