@vivantel/virage-core
Preparing search index...
GitTracker
Class GitTracker
Index
Constructors
constructor
Methods
get
All
Tracked
Files
get
Changed
Files
get
Current
Branch
get
Current
State
Constructors
constructor
new
GitTracker
(
entries
:
ChunkerEntry
[]
,
source
:
SourceRepository
,
logger
?:
Logger
,
globalIgnore
?:
string
[]
,
)
:
GitTracker
Parameters
entries
:
ChunkerEntry
[]
source
:
SourceRepository
Optional
logger
:
Logger
Optional
globalIgnore
:
string
[]
Returns
GitTracker
Methods
get
All
Tracked
Files
getAllTrackedFiles
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
get
Changed
Files
getChangedFiles
(
previousState
:
Map
<
string
,
string
>
,
currentState
?:
Map
<
string
,
{
commitHash
:
string
;
entries
:
ChunkerEntry
[]
}
>
,
)
:
Promise
<
{
toDelete
:
string
[]
;
toProcess
:
string
[]
;
unchanged
:
string
[]
}
>
Parameters
previousState
:
Map
<
string
,
string
>
Optional
currentState
:
Map
<
string
,
{
commitHash
:
string
;
entries
:
ChunkerEntry
[]
}
>
Returns
Promise
<
{
toDelete
:
string
[]
;
toProcess
:
string
[]
;
unchanged
:
string
[]
}
>
get
Current
Branch
getCurrentBranch
()
:
Promise
<
string
>
Returns the current git branch name, or "HEAD" when detached.
Returns
Promise
<
string
>
get
Current
State
getCurrentState
(
onProgress
?:
(
done
:
number
,
total
:
number
)
=>
void
,
)
:
Promise
<
Map
<
string
,
{
commitHash
:
string
;
entries
:
ChunkerEntry
[]
}
>
>
Parameters
Optional
onProgress
:
(
done
:
number
,
total
:
number
)
=>
void
Returns
Promise
<
Map
<
string
,
{
commitHash
:
string
;
entries
:
ChunkerEntry
[]
}
>
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
All
Tracked
Files
get
Changed
Files
get
Current
Branch
get
Current
State
@vivantel/virage-core
Loading...
Returns the current git branch name, or "HEAD" when detached.