Add command to apply all outstanding changes from one channel to another
[?]
Jan 12, 2021, 1:53 AM
HVVRC2GNC3D5PULNDL5XSPOQVJS2QWVU7GDGYSWLNYTK73UPYMHQCDependencies
- [2]
5ZDRHVXDAdd command to fork a new channel - [*]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
64J6B76FAdd command to rename channels - [*]
ILH3GIVTAdd command centre and refresh/init commands - [*]
5ISTB4TWAdd commands to copy the hash and message of changes in the log - [*]
6H4B4UJQAdd commands to open repo and global pijul configuration files - [*]
NCBEWRYEInitialize Repository - [*]
7DXA53YQAdd command to delete channel - [*]
GNQD74OZAdd pijul.openChange command and text document provider for pijul-change scheme
Change contents
- edit in src/repository.ts at line 352
* Apply all the oustanding changes from another channel to the current one* @param targetChannel The channel from which changes will be applied*/async mergeChannel (targetChannel: PijulChannel): Promise<void> {const outstandingChanges = await this.repository.compareChannelChanges(targetChannel.name);for await (const change of outstandingChanges.reverse()) {this.repository.applyChange(change);}}/** - edit in src/commands.ts at line 358
* Apply all the oustanding changes from another channel to the current one* @param repository The repository that contains the channel* @param targetChannel The channel to be merged into the current one*/@command('pijul.mergeChannel', { repository: true })async mergeChannel (repository: Repository, targetChannel: PijulChannel): Promise<void> {await repository.mergeChannel(targetChannel);await repository.refreshStatus();}/** - edit in package.json at line 146
},{"command": "pijul.mergeChannel","title": "Apply All Outstanding Changes to Current Channel (Merge)","category": "Pijul","icon": "$(git-merge)" - edit in package.json at line 472[10.1133][11.1936]
},{"command": "pijul.mergeChannel","when": "view == pijul.views.channels && viewItem == pijulChannel"},{"command": "pijul.mergeChannel","when": "view == pijul.views.channels && viewItem == pijulChannel","group": "inline"