gitui-org/gitui

edit only for head revision otherwise open as tempfile

開放

#2,147 建立於 2024年3月22日

 (0 則留言) (0 個反應) (0 位負責人)Rust (721 個分叉)batch import
feature-requestgood first issue

倉庫指標

星標
 (21,937 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

right now we show a edit [e] cmd for any file at any revision in file tree views. but we only open the file as it is currently on disk.

this means you don't see then what you expected when you looked at an old diff/revision. or worst case: the file is no longer present and will error.

we should only show edit [e] when you are at the head revision and otherwise two other options:

  1. open [o] which will dump the revision of the file in a tempfile and open that

  2. go to head [g] to jump the that file in the current file-tree (if it present)

  3. is not as trivial and should probably be a separate issue (feel free to open that)

貢獻者指南