[Linux-Biella] hg vs git spiegatemi

Paolo Ciarrocchi paolo.ciarrocchi a gmail.com
Gio 17 Nov 2011 14:27:40 CET


2011/11/17 PaulTT <paultt a bilug.linux.it>:
>> l'ho spiegato e ti ho pure dato un'immagine che mostra la cosa
>
> e ne son felice, ti mando un'immagine del cern, se vuoi, ma non ti spiega
> mica come funziona
> mi hai fatto vedere un popup che mi dice dei commit, il che
> 1. mi interessa poco, tanto non programmo mai in grafico, quindi non vedro'
> mai quella roba li' :D
> 2. vedere due commit non mi dice davvero nulla sai?
> ripeto, saro' gnucco io....

Copio e incollo da https://github.s3.amazonaws.com/media/book.pdf:

The git blame command is really helpful for figuring out who changed
which sections of a file. If you simple run 'git blame
[filename]' you'll get an output of the entire file with the last
commit sha, date and author for every line in the file.
Chapter 5: Advanced Git
85$ git blame sha1_file.c
...
0fcfd160 (Linus Torvalds  2005-04-18 13:04:43 -0700    8)  */
0fcfd160 (Linus Torvalds  2005-04-18 13:04:43 -0700    9) #include "cache.h"
1f688557 (Junio C Hamano  2005-06-27 03:35:33 -0700   10) #include "delta.h"
a733cb60 (Linus Torvalds  2005-06-28 14:21:02 -0700   11) #include "pack.h"
8e440259 (Peter Eriksen   2006-04-02 14:44:09 +0200   12) #include "blob.h"
8e440259 (Peter Eriksen   2006-04-02 14:44:09 +0200   13) #include "commit.h"
8e440259 (Peter Eriksen   2006-04-02 14:44:09 +0200   14) #include "tag.h"
8e440259 (Peter Eriksen   2006-04-02 14:44:09 +0200   15) #include "tree.h"
f35a6d3b (Linus Torvalds  2007-04-09 21:20:29 -0700   16) #include "refs.h"
70f5d5d3 (Nicolas Pitre   2008-02-28 00:25:19 -0500   17) #include
"pack-revindex.h"628522ec (Junio C Hamano              2007-12-29
02:05:47 -0800   18) #include "sha1-lookup.h"
...
This is often helpful if a file had a line reverted or a mistake that
broke the build to help you see who changed that line last.


-- 
Paolo


Maggiori informazioni sulla lista Linux