From d6047a2c147600a7a530d6af80ea111d581e2aab Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Fri, 18 Apr 2014 23:58:59 -0400 Subject: [PATCH] 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.