Alex Buynytskyy | 56f69e0 | 2022-10-06 00:41:57 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Brings local repository to a remote head state. |
| 3 | |
| 4 | # set -ex |
| 5 | |
| 6 | function finalize_revert_local_changes_main() { |
| 7 | local top="$(dirname "$0")"/../.. |
| 8 | |
| 9 | repo selfupdate |
| 10 | |
| 11 | repo forall -c '\ |
Alex Buynytskyy | 739a311 | 2022-11-02 20:01:30 +0000 | [diff] [blame] | 12 | git checkout . ; git revert --abort ; git clean -fdx ;\ |
Alex Buynytskyy | 9fa8d9d | 2022-11-08 23:19:47 +0000 | [diff] [blame] | 13 | git checkout @ ; git branch fina-step1 -D ; git reset --hard; \ |
Alex Buynytskyy | 56f69e0 | 2022-10-06 00:41:57 +0000 | [diff] [blame] | 14 | repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;' |
| 15 | } |
| 16 | |
| 17 | finalize_revert_local_changes_main |