MGRAFWDZTJ6ODMSPYNX4YLJ5JLQGN535AVTX3F6GFS54IHMEZ2EQC
LL5PNIABADMCIKL7OKCQM7AIQFK363TYWU65FSVM22YAV73FWROAC
GPTHUH3N7W2DMGEYDBKIAQFJS3CLNQEV667FQCRIH4ZNHFRODRLQC
H3GAPFUC4TCMSLC3O4LUNQNHRANRNVIOQJRTZT4XQ3AUXFHTW4CAC
B4SKYP3Y5R7UPPGLLZV7OK3SIN4TRAJ3IL6FS3T7ZFZF5HTEQARQC
YDCLFNEJZCXIHV6SS2XC7WPBPA5QTSLRMVVDLZ3XRJ7QDAISEGHQC
ZGMIJNFVDK7R6AF56FNCA23W5KV3HVBUBPTWMLQADCEPB3MOPELQC
5ISTB4TW2BH52Y7U4XSVQ5PBHWIHIN2Q26V5M25HLWWHKJIPCNOQC
64J6B76FTOAIPF2HGPIQYU523COLWHN7QOVC3XY42PHKC3GCLMZAC
ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC
NCBEWRYEEJMJO37SHY7XCNFZYWLT5HUHCKN47UGSEY3FFWFX6QFQC
* Apply a change to a given channel
* @param change The change to apply to a channel
* @param channelName The name of the channel the change will be applied to
*/
async applyChange (change: PijulChange, channelName?: string): Promise<void> {
if (!channelName) {
// TODO: Show more channel information with QuickPickOption
channelName = await window.showQuickPick((await this.repository.getChannels()).map(c => c.name), { placeHolder: 'Channel Name', ignoreFocusOut: true });
}
this.repository.applyChange(change, channelName);
}
/**
* Apply a change to the current channel
* @param change The change to apply
*/
async applyChangeToCurrentChannel (change: PijulChange): Promise<void> {
this.repository.applyChange(change);
}
/**
* Apply a change to a given channel or the current channel if no channel name is provided
* @param change The change to apply to a channel
* @param channelName The name of the channel the change will be applied to
*/
async applyChange (change: PijulChange, channelName?: string): Promise<void> {
const additionalArgs: string[] = [];
if (channelName) {
additionalArgs.push('--channel', channelName);
}
await this._pijul.exec(this.repositoryRoot, ['apply', change.hash, ...additionalArgs]);
}
/**
* Apply a change to the current channel
* @param change The change to apply
*/
@command('pijul.applyChangeToCurrentChannel', { repository: true })
async applyChangeToCurrentChannel (repository: Repository, change: PijulChange): Promise<void> {
repository.applyChangeToCurrentChannel(change);
}
/**