1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

diff: add Japanese translation (#14502)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
luna029 2025-01-15 07:25:00 +09:00 committed by GitHub
parent 1a7645ceb2
commit fe05e8b89b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
pages.ja/common/diff.md Normal file
View file

@ -0,0 +1,36 @@
# diff
> ファイルとディレクトリを比較する。
> もっと詳しく: <https://manned.org/diff>
- ファイルを比較する(`old_file``new_file`にするための変更点を列挙する):
`diff {{old_file}} {{new_file}}`
- 空白を無視してファイルを比較する:
`diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}`
- ファイルを比較し、差分を並べて表示する:
`diff {{-y|--side-by-side}} {{old_file}} {{new_file}}`
- ファイルを比較し、差分を統一フォーマットで表示する(`git diff`で使用される):
`diff {{-u|--unified}} {{old_file}} {{new_file}}`
- ディレクトリを再帰的に比較する (異なるファイル/ディレクトリの名前と、ファイルに加えられた変更を表示します):
`diff {{-r|--recursive}} {{old_directory}} {{new_directory}}`
- ディレクトリを比較し、異なるファイル名のみを表示する:
`diff {{-r|--recursive}} {{-q|--brief}} {{old_directory}} {{new_directory}}`
- 2つのテキストファイルの差分からGit用のパッチファイルを作成します。存在しないファイルは空ファイルとして扱います:
`diff {{-a|--text}} {{-u|--unified}} {{-N|--new-file}} {{old_file}} {{new_file}} > {{diff.patch}}`
- ファイルを比較し、出力を色分けして表示する:
`diff {{-d|--minimal}} --color=always {{old_file}} {{new_file}}`