Skip to content

Commit

Permalink
Highlight line with the committed revision number.
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Apr 24, 2024
1 parent 65d48cb commit ca982fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
...
- The `commit` command now highlights the line with a commited revision number.

### Changed
...
Expand Down
4 changes: 3 additions & 1 deletion src/SVNBuddy/Command/CommitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$arguments[] = $wc_path;
}

$this->repositoryConnector->getCommand('commit', $arguments)->runLive();
$this->repositoryConnector->getCommand('commit', $arguments)->runLive(array(
'/^(Committed revision [\d]+\.)$/' => '<fg=white;options=bold>$1</>',
));
$this->_workingCopyConflictTracker->erase($wc_path);
unlink($tmp_file);

Expand Down

0 comments on commit ca982fa

Please sign in to comment.