-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow file rename action for GitHub and Bitbucket
To avoid a schema change introducing a new field for the old filename, we store both the old and new name in the existing field, separated by a delimiter ' → ' (defined as constant in SourceFile class). To ensure we generate valid URLs as target for the Diff and File buttons we also introduce a new SourceFile::getFilename() method, which is used in the url_diff() and url_file() methods to split the value and return the actual filename to use (i.e. the new one). Fixes #374
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters