Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
difit
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nikawa2161
August 05, 2025
480
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
difit
nikawa2161
August 05, 2025
Transcript
14 slides
difit使ってみました ローカル環境でGitHubのPRと同じUIで差分を確認できるツール 1
difitって? ローカル環境で最新コミットの変更点をGitHubのPRと同じで見れる コマンド一つで簡単に起動 2
なんで使ったか ローカルの差分をGitHubと同じで見れるって楽、シンプルにみやすい 簡単に操作できそうでシンプルに気になった AIに出してもらったコードが多い場合に、一個ずつファイル確認するのだるい 3
どんな感じか 4
コメント機能 コメントがファイル名・行番号つきでコピーできる 5
コメント出力 画面閉じるとコメント出力 6
使い方 difit - 最新のコミットの差分を見れる difit @ develop - 現在のブランチとdevelopブランチの差分を表示 difit
staged - ステージングされたファイルの差分を見れる difit --pr <PR リンク> - PRの差分を見れる(githubで見れば良いので謎機能) difit --tui - ターミナルで見れる 7
使ってみて コマンド一つで勝手に立ち上がるので、楽 複数ファイルを見るときに、ギットハブと同じで見れるのでそれも良かった githooksでコミット前に確認するというのもありかも 8
githooksを作成 コミット前にGUIで確認 OKならコミット NGなら修正とコメントを出力 結果(ダメ) difitを終了した後の出力をコントロールできない hooksで受け取って、結果で分岐することできなかった TUIであれば可能だったけど、みづらすぎてつらい 9
シンプルな構成 コミット完了後にGUI開いて確認 #!/usr/bin/env bash exec < /dev/tty difit HEAD プッシュ前にGUIとTUIで確認
#!/usr/bin/env bash set -euo pipefail exec < /dev/tty difit @ develop --tui read -r -p "Push を続行しますか? [Y/n] " ans [[ "${ans:-Y}" =~ ^[Yy]$ ]] || { echo "push aborted"; exit 1; } 10
おわり npx difit ですぐ試せるのでやってみてください 11
おまけ1 o3-search-mcp claudeの謎出力が出たら、o3に聞いてる 一回10円くらい(0.01ドル) "o3": { "command": "npx", "args": ["o3-search-mcp"]
} 12
おまけ2 フックでタスク終了時に音を鳴らす "hooks": { "Stop": [ { "hooks": [ {
"type": "command", "command": "afplay ~/.claude/task-end.m4r" } ] } ] } 13
END 14
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
50
Sagaパターン入門(続編)
nikawa2161
0
59
Sagaパターン入門
nikawa2161
0
85
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
44
20251209_プログラミング原則の学び
nikawa2161
0
47
自分のコードを数年ぶりに読んだら
nikawa2161
0
29
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
49
oEmbedとは?
nikawa2161
0
280
はじめまして、にかわです
nikawa2161
0
34
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
320
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Embracing the Ebb and Flow
colly
88
5.2k
[SF Ruby Conf 2025] Rails X
palkan
3
1.6k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k
Six Lessons from altMBA
skipperchong
29
4.6k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k