{"thread":{"id":"28228","subject":"How do I get a readable diff?","startedAt":"2011-08-26T22:42:50Z","lastAt":"2011-08-26T23:17:13Z","messageCount":3,"participants":["Bruce Korb","Brandon Casey","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"174355","messageId":"4E58216A.8060508@gmail.com","threadId":"28228","inReplyTo":null,"subject":"How do I get a readable diff?","fromName":"Bruce Korb","fromEmail":"bruce.korb@gmail.com","sentAt":"2011-08-26T22:42:50Z","receivedAt":"2011-08-26T22:42:50Z","isPatch":false,"sender":{"key":"bruce.korb@gmail.com","avatar":"https://gravatar.com/avatar/86d91467dc7cc8466a9d133a7b93a5d21233052017c144c9a6f6f7e5110344d0?d=mp&s=160"},"body":"I know I can pipe it through \"cat\", but I'd rather the clutter be gone.\nThere has to be a way.\n\nESC[1mdiff --git a/lustre/include/lustre_disk.h b/lustre/include/lustre_disk.hESC[m\nESC[1mindex 10f6328..564fc08 100644ESC[m\nESC[1m--- a/lustre/include/lustre_disk.hESC[m\nESC[1m+++ b/lustre/include/lustre_disk.hESC[m\nESC[36m@@ -185,6 +185,7 @@ESC[m ESC[mstruct lustre_mount_data {ESC[m\n          int        lmd_exclude_count;ESC[m\n          int        lmd_recovery_time_soft;ESC[m\n          int        lmd_recovery_time_hard;ESC[m\nESC[32m+ESC[mESC[32m        int        lmd_reserved_inodes; /* preferred value */ESC[m\n          char      *lmd_dev;           /* device name */ESC[m\n          char      *lmd_profile;       /* client only */ESC[m\n          char      *lmd_mgssec;        /* sptlrpc flavor to mgs */ESC[m\nESC[36m@@ -202,6 +203,8 @@ESC[m ESC[mstruct lustre_mount_data {ESC[m\n                                          existing MGS services */ESC[m\n  #define LMD_FLG_WRITECONF    0x0040  /* Rewrite config log */ESC[m\n  ESC[m\nESC[32m+ESC[mESC[32m#define LMD_RESERVED_INODES_DEFAULT 100ESC[m\nESC[32m+ESC[m\n  #define lmd_is_client(x) ((x)->lmd_flags & LMD_FLG_CLIENT)ESC[m\n  ESC[m\n  ESC[m\n"},{"id":"174356","messageId":"YLOHfGzBBJxbxqM1qsJcnw-e9_g2VtXOgnU8xvQ_IlNrU6zqGVsN05yN5fm1zRD8rr_rz_2cO52ZPfqe5_03kZm5DwGQebZf_9jzyEsmGQw@cipher.nrlssc.navy.mil","threadId":"28228","inReplyTo":"4E58216A.8060508@gmail.com","subject":"Re: How do I get a readable diff?","fromName":"Brandon Casey","fromEmail":"brandon.casey.ctr@nrlssc.navy.mil","sentAt":"2011-08-26T22:58:32Z","receivedAt":"2011-08-26T22:58:32Z","isPatch":false,"sender":{"key":"brandon.casey.ctr@nrlssc.navy.mil","avatar":null},"body":"On 08/26/2011 05:42 PM, Bruce Korb wrote:\n> I know I can pipe it through \"cat\", but I'd rather the clutter be gone.\n> There has to be a way.\n\nYour terminal does not support color.  Are you on an ancient system?\nor something exotic?\n\nYou can disable it by setting the color.ui config variable in your\n\"user\" config file ~/.gitconfig like this:\n\n   git config --global color.ui never\n\n-Brandon\n\n\n> ESC[1mdiff --git a/lustre/include/lustre_disk.h b/lustre/include/lustre_disk.hESC[m\n> ESC[1mindex 10f6328..564fc08 100644ESC[m\n> ESC[1m--- a/lustre/include/lustre_disk.hESC[m\n> ESC[1m+++ b/lustre/include/lustre_disk.hESC[m\n> ESC[36m@@ -185,6 +185,7 @@ESC[m ESC[mstruct lustre_mount_data {ESC[m\n>          int        lmd_exclude_count;ESC[m\n>          int        lmd_recovery_time_soft;ESC[m\n>          int        lmd_recovery_time_hard;ESC[m\n> ESC[32m+ESC[mESC[32m        int        lmd_reserved_inodes; /* preferred value */ESC[m\n>          char      *lmd_dev;           /* device name */ESC[m\n>          char      *lmd_profile;       /* client only */ESC[m\n>          char      *lmd_mgssec;        /* sptlrpc flavor to mgs */ESC[m\n> ESC[36m@@ -202,6 +203,8 @@ESC[m ESC[mstruct lustre_mount_data {ESC[m\n>                                          existing MGS services */ESC[m\n>  #define LMD_FLG_WRITECONF    0x0040  /* Rewrite config log */ESC[m\n>  ESC[m\n> ESC[32m+ESC[mESC[32m#define LMD_RESERVED_INODES_DEFAULT 100ESC[m\n> ESC[32m+ESC[m\n>  #define lmd_is_client(x) ((x)->lmd_flags & LMD_FLG_CLIENT)ESC[m\n>  ESC[m\n>  ESC[m\n> -- \n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"174358","messageId":"7vsjonbw5i.fsf@alter.siamese.dyndns.org","threadId":"28228","inReplyTo":"YLOHfGzBBJxbxqM1qsJcnw-e9_g2VtXOgnU8xvQ_IlNrU6zqGVsN05yN5fm1zRD8rr_rz_2cO52ZPfqe5_03kZm5DwGQebZf_9jzyEsmGQw@cipher.nrlssc.navy.mil","subject":"Re: How do I get a readable diff?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-08-26T23:17:13Z","receivedAt":"2011-08-26T23:17:13Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil> writes:\n\n> On 08/26/2011 05:42 PM, Bruce Korb wrote:\n>> I know I can pipe it through \"cat\", but I'd rather the clutter be gone.\n>> There has to be a way.\n>\n>> ESC[1mdiff --git a/lustre/include/lustre_disk.h b/lustre/include/lustre_disk.hESC[m\n> ...\n> Your terminal does not support color.  Are you on an ancient system?\n> or something exotic?\n>\n> You can disable it by setting the color.ui config variable in your\n> \"user\" config file ~/.gitconfig like this:\n>\n>    git config --global color.ui never\n>\n> -Brandon\n\nAnother possibility is that the user has a LESS environment defined, but\nwithout \"R\" to let it interpret the color. When we do not see \"LESS\" in\nthe environment, we play nice and give them FRSX, but if the user already\nhas LESS, we assume the user knows better than us and do not touch the\nenvironment.  Compare:\n\n    $ LESS=N git show\n    $ LESS=NR git show\n"}]}