TMXDVYNLUGUPQLK3CDSJB5TN4QQS5C4DLFV4TDT4HZG3FBUCNJYAC
B3TBPH7RNYVK5IN6RL55JCQDMCRMSYW3I4NBDTUOGSF3EUDRFU4AC
YDCLFNEJZCXIHV6SS2XC7WPBPA5QTSLRMVVDLZ3XRJ7QDAISEGHQC
B4SKYP3Y5R7UPPGLLZV7OK3SIN4TRAJ3IL6FS3T7ZFZF5HTEQARQC
MU6ZNUYZBFX4HUTJO7HEXCEJ5KTQAMCR4MUKSUDM2MYUFCEAHRDAC
VWRDBPJZG6LMTUN2BKCBBPY2LZNJDIJMJ4SFYGXYQFW2XDNXNJPAC
H3GAPFUC4TCMSLC3O4LUNQNHRANRNVIOQJRTZT4XQ3AUXFHTW4CAC
ZGMIJNFVDK7R6AF56FNCA23W5KV3HVBUBPTWMLQADCEPB3MOPELQC
JYMSJCPQJYHP2OQLGDM2SBN4I7HO2ORFNRY3GB5QQIPYFSJE7JOQC
ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC
NCBEWRYEEJMJO37SHY7XCNFZYWLT5HUHCKN47UGSEY3FFWFX6QFQC
}
}
/**
* Record all diffs from the pristine, amending the most recent change instead of creating a new one
* @param message The message for the amended change
*/
async amendAllChanges (message? : string): Promise<void> {
if (!message) {
message = await this.getChangeMessage({ amend: true });
/**
* Options for the getChangeMessage method
*/
interface IGetChangeMessageOptions {
amend?: boolean
}
}
/**
* Record all diffs from the pristine, amending the most recent change instead of creating a new one
* @param message An updated message for the change
*/
async amendAllChanges (message?: string): Promise<void> {
if (message) {
await this._pijul.exec(this.repositoryRoot, ['record', '-a', '--amend', '-m', message]);
} else {
await this._pijul.exec(this.repositoryRoot, ['record', '-a', '--amend']);
}
await repository.refreshStatus();
}
/**
* Amend the most recent change will all of the unrecorded changes
* @param repository The repository to record in
*/
@command('pijul.amendAll', { repository: true })
async amendAll (repository: Repository): Promise<void> {
await repository.amendAllChanges();