You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Gitをhomebrewで2.3.6にアップデートしたら、行内の文字単位のdiffが完璧に出るようになってた。 以前は一応見れたけど3割ぐらい文字化けしてた → 文字単位でgit diff 1行が長い文章を書いている時は、変更された文字単位で背景色がつくとどこが変わったかわかりやすい 設定 diff-highlightにパスを通す % brew install git % ln -s /usr/local/Cellar/git/2.3.6/share/git-core/contrib/diff-highlight/diff-highlight /usr/local/bin/diff-highlight ~/.gitconfig でpagerを設定 [color] ui = auto [pager] log = diff-highlight | less show = diff-highli
W3C Editors homepage Create Diff between HTML pages Address of reference document: Address of new document: Tip: if the document uses the W3C convention on linking to its previous version, you can specify only the address of the new document — the previous link will be automatically detected. Diff markings This service relies on GNU diff. The found differences are roughly marked as follow: deleted
問題 八百万あるVimのコマンドで特に有用なもののひとつとしてgfがあります。 このコマンドはカーソル下にあるファイル名らしき文字列を探し、 該当するファイルがあればそれを開くというものです。 gf はカーソル下にあるファイル名らしき文字列をそのまま使うだけでなく、 特定のディレクトリ下にあるかどうか検索(例えばC言語でなら /usr/include や ./include を検索)したり、 特定の拡張子を付加して検索(例えばJavaなら SomeClass のファイル名は SomeClass.java なので、 .java を付加して検索)することができ、 そこそこ賢く動いてくれます。 さて、日常的に git を使っている身としては 日常的に git diff の出力を眺める機会も多いです。 「git diff の出力を眺めて変更のあったファイルを開く」ということも頻繁に行います。 これ
git diffには、本当に便利な機能があって、--statというのが とても便利。 現在の作業ブランチと別のブランチ(タグ)の間でどれだけソースが 変更されているか? それをいちいちdiffでソースコードで表示しても・・・ 大量にあった場合あんまりうれしくありません。 そんなとき、--stat。 git diff --stat --color <タグ名,ブランチ名> と打つと以下のように、、、 Classes/MovieController.m | 26 +------------------ Classes/OverlayView.h | 31 ------------------------ Classes/OverlayView.m | 45 ----------------------------------- Classes/PlayMovie_Delegate.h | 5 -
gitでは、mergetoolというコマンドを打ち込むと マージの為に設定されたツールが立ち上がります。 Macの場合、標準では、opendiffが選ばれます。 とはいえ使い勝手がよいかというとそうでもないのでせっかくの機会ですから 色々試してみました。 ●Changes.app これは、日頃差分ツールとして愛用しているシェアウェアですが、 実は、Git mergetoolとしても設定できるそうで。 こちらのページが参考になります。 任意の場所にgit-chdiff.shというファイルを作成し、 chmod +xで実行権限をつけておきます。 ファイルの内容は、以下のコマンドを記述します。 #!/bin/sh [ $# -eq 7 ] && /usr/bin/env chdiff --wait "$2" "$5" そして、git configコマンドで、外部diffツールとして関連づけておき
Vimのdiffがすごく楽なので使いまくり始めた。単にgVimを新たに起動してdiffを行うだけならば、-dオプションとファイルを2つ渡してやれば良い。が、既に起動しているgVimの新しいタブでdiffを行う方法がわからない。--remote-tab-silentオプションを追加するだけではうまくいかないようだ。色々調べたところ、公式MLのアーカイブにあったスレッドで、--remote系のオプションではExコマンドを1つ指定して実行することができるので、それを利用してvertical diffsplitを実行してやれば良いことがわかった。 つまり、foo.txtからbar.txtとの差分を既に起動しているgVimで開く場合は、 $ gvim --remote-tab-silent +"vertical diffsplit bar.txt" foo.txt とする。foo.txtを既に起動し
svn diff をカラフルに表示させるワンライナー - すぎゃーんメモの続き。 コメントで色々おしえていただいた。 colordiff で diff や svn diff を見やすくする方法 - Craftworks Tech Blog - Branch ので、早速試してみた。 $ sudo port install colordiff $ cd ~/.subversion $ cp config config.bak $ vi config $ diff config config.bak 31c31 < diff-cmd = colordiff --- > # diff-cmd = diff_program (diff, gdiff, etc.)これで"svn diff"コマンドの結果がカラフルに表示されるように! …でも色が気に入らない。追加部分が青、削除部分が赤になっている。自分
これだけ。 結局、$HOME/.hgrcは以下のような感じに。色の詳細設定は [color]セクションを追加して設定します。MQ使ってない(ってか、 何かあんまりわかってない。)ので、qseriesは設定していません。 [defaults] cdiff = -q [extdiff] cmd.cdiff = colordiff opts.cdiff = [extensions] hgext.color = hgext.extdiff = color = [color] status.modified = green bold underline status.added = magenta bold underline status.removed = red bold blue_background status.deleted = red underline status.unknown
Paste some JSON in each of the text fields. Click "Compare" to see the diff. Changed portions are displayed in yellow. Additions are displayed in green. Deletions are displayed in red. It also works as a JSON viewer. Click the disclosure triangles to display/hide portions of the JSON. Invalid JSON is indicated by the text fields turning red. Swap the contents of the text areas by clicking "Swap".
Get Answers, Not Just Directions. You have a problem. Something has changed and it's causing problems. Changes will help you investigate files and folders on your Mac, helping you get to the root of the problem. Our workflow allows you to quickly narrow in on the differences, telling you exactly what changed — not just where it changed. Narrow your Search Quickly spot what's changed, removed or ad
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く