
나는 종종 $ git show commitid를 사용하여 사람이 어떤 변경을 했는지 확인합니다. 예를 들어 -
┌─[shirish@debian] - [~/games/libcpuid] - [10029]
└─[$] git show b5bd535
commit b5bd5355829dcd123fba20a3c1d14f2bc139dc43
Author: eloaders <[email protected]>
Date: Mon Oct 3 20:10:02 2016 +0200
Fix #72
let libcpuid 0.4.0 and brethen conflict with libcpuid 0.3.0 and its
brethen
diff --git a/debian/control b/debian/control
index ba71f44..b70c5da 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Homepage: https://github.com/anrieff/libcpuid
Package: libcpuid14
Architecture: amd64 i386
Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Pre-Depends}
-Replaces: libcpuid11
+Replaces: libcpuid11, libcpuid13
Description: small C library for x86/x86_64 CPU detection and feature extraction
이것은에서 온 것입니다https://github.com/anrieff/libcpuid하지만 그것은 실제 질문이 아닙니다. 색상이 다른 수은과 모든 것을 사용하는 비슷한 방법이 있습니까? $hg show 변경 집합 ID를 시도했지만 아무데도 없습니다 :(
답변1
색상 확장 활성화
hg log -r NNN -v -p -g
(색상 청크를 표시할 수는 없지만~이다여기)
changeset: 7:32bbc6bc3867
user: AL <lazybadger@*>
date: Tue Nov 20 03:51:53 2012 +0600
files: 404.php
description:
Localization of page
diff --git a/404.php b/404.php
--- a/404.php
+++ b/404.php
@@ -1,8 +1,8 @@
<?php get_header(); ?>
<article class="noposts">
- <h2>404 - Content Not Found</h2>
- <p>We don't seem to be able to find the content you have requested - why not try a search below?</p>
+ <h2><?php _e('404 - Content Not Found','fiver' ); ?></h2>
+ <p><?php _e('We don’t seem to be able to find the content you have requested - why not try a search below?','fiver' ); ?></p>
<?php get_search_form(); ?>
</article>
기본 출력을 변경하려면 - 자신만의 스타일을 작성하고 -T stylename
로그 옵션에 추가하세요.
메모
사용된 옵션:
-r
표시할 변경 세트의 범위 정의(단일 변경 세트 또는 개정 세트일 수 있음)-v
(선택 사항) 자세한 출력: 기본 출력의 형식을 약간 변경하고 파일에 문자열을 추가합니다. 각 변경 세트에 영향을 받습니다(기본값에는 유사 항목이 없음git show
).-p
로그 출력에 변경 사항 차이 추가-g
위의 diff를 "확장 Git 형식"으로 내보냅니다(git show
diff에서는 항상 Git 형식이기 때문입니다).