https://github.com/haxpor/diffp4
diff colorifying tool e.g. coloring diff output from perforce, etc
https://github.com/haxpor/diffp4
color-output diff p4 perforce terminal
Last synced: about 1 year ago
JSON representation
diff colorifying tool e.g. coloring diff output from perforce, etc
- Host: GitHub
- URL: https://github.com/haxpor/diffp4
- Owner: haxpor
- License: mit
- Created: 2021-07-11T17:34:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-05T21:14:50.000Z (over 4 years ago)
- Last Synced: 2025-01-20T07:42:03.181Z (over 1 year ago)
- Topics: color-output, diff, p4, perforce, terminal
- Language: C++
- Homepage:
- Size: 702 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# diffp4
Perforce's `p4` tool has no built-in support for its diff output.
So `diffp4` is created to solve that problem.
PS. I'm not interested in solving this problem with `P4DIFF` which *might* be able
to solve the problem.
# Build
## Linux/Unix
* `make`
* `sudo make install`
## Windows
* `make.bat`
> If you use WSL, then you can do that via `cmd.exe /c make.bat` but you need to make sure you are in Visual Studio environment in order for `cl.exe` to be picked up.
# Installa via published packages
## Debian/Ubuntu
* `sudo add-apt-repository ppa:haxpor/combined`
* `sudo apt install diffp4`
# Usage
The program itself reads the input from the standard input. So you send input
either via `|` (pipe), or reading from file.
* `p4 diff | diffp4 -t perforce`
* `p4 diff -du | diffp4 -t perforce`
* `p4 describe -S 1234567 | diffp4 -t perforce`
* `diffp4 < /somedir/anotherdir/p4_diff.diff`
# Support
## Perforce
* `p4 diff` with or without `-du`
* `p4 describe`
# License
MIT, Wasin Thonkaew