Add Rollback Selected button to staging page

Rollback restores selected unstaged files to their HEAD state
using git checkout. The button shares the form with Stage Selected,
distinguished by the submit button's name/value pair.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-27 10:05:41 +01:00
parent 1b6f007eea
commit 321e268530
5 changed files with 45 additions and 3 deletions

View File

@@ -19,7 +19,8 @@
</tr>
</table>
<br>
<input type="submit" value="Stage Selected">
<input type="submit" name="action" value="Stage Selected">
<input type="submit" name="action" value="Rollback Selected">
</form>
<p th:if="${#lists.isEmpty(modifiedFiles)}"><i>No modified files.</i></p>