From d6047a2c147600a7a530d6af80ea111d581e2aab Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Fri, 18 Apr 2014 23:58:59 -0400 Subject: [PATCH 1/4] Add Tab Space URL hack --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4a54196..180f3c5 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c ## Table of Contents - [GitHub](#github) - [Ignore Whitespace](#ignore-whitespace) + - [Adjust Tab Space](#adjust-tab-space) - [Commit History by Author](#commit-history-by-author) - [Cloning a Repository](#cloning-a-repository) - [Comparing Branches](#comparing-branches) @@ -61,6 +62,9 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli [*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets) +### Adjust Tab Space +Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views. + ### Commit History by Author To view all commits on a repo by author add `?author=username` to the URL. From 5c5278bdd743134e4782e82a13608795d69ae2b0 Mon Sep 17 00:00:00 2001 From: Rafal Chmiel Date: Sat, 19 Apr 2014 10:39:04 +0100 Subject: [PATCH 2/4] Add example for tab space trick --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 180f3c5..2d54191 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,14 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli ### Adjust Tab Space Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views. +Here is a Go source file beofre adding `?ts=4`: + +![Before, tab space example](http://i.imgur.com/GIT1Fr0.png) + +...and this is after adding `?ts=4`: + +![After, tab space example](http://i.imgur.com/70FL4H9.png) + ### Commit History by Author To view all commits on a repo by author add `?author=username` to the URL. From 89d89bc1fb275f01be5774c4bd6854fb30266385 Mon Sep 17 00:00:00 2001 From: Rafal Chmiel Date: Sat, 19 Apr 2014 10:40:28 +0100 Subject: [PATCH 3/4] Fix typo + add link to source file --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d54191..0190c86 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli ### Adjust Tab Space Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views. -Here is a Go source file beofre adding `?ts=4`: +Here is a Go source file [before](https://github.com/pengwynn/flint/blob/master/flint/flint.go) adding `?ts=4`: ![Before, tab space example](http://i.imgur.com/GIT1Fr0.png) -...and this is after adding `?ts=4`: +...and this is [after](https://github.com/pengwynn/flint/blob/master/flint/flint.go?ts=4) adding `?ts=4`: ![After, tab space example](http://i.imgur.com/70FL4H9.png) From f2df58a4a79f08ade1540ee4968007022ca6aa8d Mon Sep 17 00:00:00 2001 From: Edward Look Date: Sat, 19 Apr 2014 11:55:05 -0700 Subject: [PATCH 4/4] Query is case-sensitive --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0190c86..5debf97 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,7 @@ A Git query allows you to search all your previous commit messages and find the $ git show :/query ``` -Where `query` is the term you want to search, this then finds the last one and gives details on the lines that were changed. +Where `query` (case-sensitive) is the term you want to search, this then finds the last one and gives details on the lines that were changed. ```bash $ git show :/typo