エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
vimで`git add`する前に`--dry-run`して確認する
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
vimで`git add`する前に`--dry-run`して確認する
def GitAdd(args: string) const current_dir = getcwd() try chdir(expand('%:p:h')) echoh MoreMsg ec... def GitAdd(args: string) const current_dir = getcwd() try chdir(expand('%:p:h')) echoh MoreMsg echo 'git add --dry-run ' .. args const list = system('git add --dry-run ' .. args) if !!v:shell_error echoh ErrorMsg echo list return endif if !list echo 'none.' return endif for item in split(list, '\n') execute 'echoh' (item =~# '^remove' ? 'DiffDelete' : 'DiffAdd') echo item endfor echoh Question if