showlinenum:showlinenum.awk - 显示 git diff 的行号

时间:2024-06-20 04:07:41
【文件属性】:

文件名称:showlinenum:showlinenum.awk - 显示 git diff 的行号

文件大小:239KB

文件格式:ZIP

更新时间:2024-06-20 04:07:41

Shell

节目单号 showlinenum.awk - 显示 git diff 的行号 这个 gawk 脚本改变了 git diff 的输出以在每一行前面加上行号。 用法 git diff [options] | showlinenum.awk [options] showlinenum 的所有选项都需要一个值,并使用格式option=value指定。 不支持组合差异格式。 输出 差异行输出采用以下格式: [path:]: 显示路径时,它是新版本的文件路径。 显示新版本文件中的行(即相同或添加的行)的行号。 如果某行仅出现在旧版本的文件中(即已删除的行)或发现警告指示符,则使用填充空间代替行号。 如果文件被删除,则使用波浪号 ~ 代替行号。 的第一个字符是四个指示符之一: - : 行已删除+ : 添加行 : 行相同\ :


【文件预览】:
showlinenum-develop
----License_GPLv3.rtf(37KB)
----License_GPLv3.txt(34KB)
----screenshot.png(34KB)
----.gitignore(9B)
----color_line_number.gif(177KB)
----README.md(6KB)
----showlinenum.awk(16KB)
----.gitattributes(13B)

网友评论