dear / xl-git Goto Github PK
View Code? Open in Web Editor NEWA front-end for git in xyzzy
License: MIT License
A front-end for git in xyzzy
License: MIT License
--dry-run
を追加して実行している時点でdiffは取得できるので
git diff --cached
をくっつける必要はない
現状ではすべて M-x
から操作するようになっているが、
mercurial.l のようにリポジトリであればマイナーモードとして
幾つかのコマンドを割り当てる
git-issue に対応する
大体は define-git-command
でいける
git issue commit
が git commit
同様こちらで再現する必要がありそうなのが大変
取り敢えず使ってみないと何とも…
参考
git(1)
参照しづらいので Wiki へ移転する
正規表現での最大文字数も絡むので中々難しい…
syntax highlight をする為にリポジトリ上だけは *.lisp
にしてしまおうかどうしようか
xyzzy-022/xyzzy/issues/177 が実装されれば制作時の不便も少なそうだし
append
等で追加しないと他のモードとregexp-keyword-listでの着色を共存できない
しかし、modeが終了した際に消さなきゃいけないな…
cmd /c
を付ける、というか
git-command-line
から更に ed::shell-command-line
を通せばOK
*minibuffer-default-history*
ではなく別の履歴引数を使う
ni用に load-before-uninstall
で unregister-history-variable
もしないといけない
現状、途中でだらけてしまって微妙と言わざるを得ない
現状だと git-diff
用の正規表現を流用している為、行頭じゃないと認識しなくなっている
参考
git(1)
現状コミットメッセージは *Git*
で入力を行っているが
*GitMessage*
等の別バッファにして、右側に git diff --cached
を表示させる
--amend
の場合は git-diff --cached HEAD^
git-output-mode
-- major -> minorgit-diff-mode
-- minor -> majorgit-log-mode
-- minor -> majorgit-commit-message-mode
-- majorにした方が regexp-keyword-list
の取り扱いがメジャーモードのみとなり、
また、別のモードを利用するという発展も可能なのではなかろうか
現状では mercurial.l のように C-u
ならプロンプトを出すようにしているが
常に出した方が git-tag
等の引数の有無で動作が全く違う物が使い易くなるのではなかろうか
だが read-string
なので completing-read
にしてbranchを候補に登録したりは出来なくなる
今でもしてないけど
META name = GENERATOR content = "MSHTML 8.00.6001.18702"
Dummy issue.
Close in after release.
git commit --verbose
の為にdiffの着色も行っているが邪魔かも?
+
と -
が色が付いてしまうdiff
とかも色が付いてしまう(git::define-git-command ("clone")
; :symbol #:git-clone
:document "Clone a repository into a new directory."
:prompt t
:dir-prompt t
; :file-arg nil
; :minor-mode nil
:no-std-handles t)
(git::define-git-command ("clone")
; (:name "git-clone")
(:documentation "Clone a repository into a new directory.")
(:prompt t)
(:dir-prompt t)
; (:file-arg nil)
; (:minor-mode nil)
(:no-std-handles t))
:symbol
-> :name
:document
-> :documentation
(eq no-std-handles t)
(eq show :hide)
な git-call-process
の際に git-wrapper.bat
が非表示なのに呼ばれてしまい残ってしまう
例: git-gui
現状、git commit
を再現する形で最終的にcommit -Fするという方法を取っているが
非常に際限が難しく、また git rebase
や git tag -a
等の事を考えると
GIT_EDITORを必ず設定しているのだから普通にそのまま git-make-process
して
*auto-mode-alist*
でもってメッセージ用のモードに切り替える方法に変更する
call-process
と make-process
の :exec-directory
に設定し忘れorz
使用頻度の高そうなコマンドなので
git.el のような git-status
*Git Status*
から git-add
, git-resert-head-file
, git-diff-file
, git-commit
等をしたい
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.