Sample: refactor a function name |
|
|
|
Replace page |
|
|
Sample: refactor a function name
Lets say there is a function called foo that is used in 60 files. User A creates a new function called bar and wants to replace the function name in 5 files. In the mean while user B modified and saved one of the files. The steps below describes the complete work flow:
- User A
searches on key word foo. In the first result page, there are 3 files that user A wants to replace.
- User A clicks on
replace and types bar and hits enter.
- User A
selects the 3 files and relative matches that will be replaced.
- User A
compares and confirms the differences between the original and replaced lines.
- User A
commits the new contents of the 3 files to the server.
- All the 3 files are written successfully indicated by the
report.
- User A
replaces the next page by selecting the remaining 2 files and relative matches.
- User B modifies one of the 2 files and saves it.
- User A commits the replacement.
- One of the 2 files is reported written failure because it was modified during the replacing.
- User A refreshes the page and replaces the failed file again.
- User A commits the replacement successfully.
- Optional: To undo the changes, user A
checks out the changes in git status page.
Updating this document
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
http://wiki.eclipse.org/Orion/Documentation/User_Guide/Reference/Search_Results_page
|
|
|
Replace page |
|
|