{"action":"created","issue":{"url":"https://api.github.com/repos/ymattw/cdiff/issues/56","repository_url":"https://api.github.com/repos/ymattw/cdiff","labels_url":"https://api.github.com/repos/ymattw/cdiff/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/ymattw/cdiff/issues/56/comments","events_url":"https://api.github.com/repos/ymattw/cdiff/issues/56/events","html_url":"https://github.com/ymattw/cdiff/pull/56","id":151866190,"number":56,"title":"Add 'force pager' option","user":{"login":"hypnoglow","id":4853075,"avatar_url":"https://avatars.githubusercontent.com/u/4853075?v=3","gravatar_id":"","url":"https://api.github.com/users/hypnoglow","html_url":"https://github.com/hypnoglow","followers_url":"https://api.github.com/users/hypnoglow/followers","following_url":"https://api.github.com/users/hypnoglow/following{/other_user}","gists_url":"https://api.github.com/users/hypnoglow/gists{/gist_id}","starred_url":"https://api.github.com/users/hypnoglow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypnoglow/subscriptions","organizations_url":"https://api.github.com/users/hypnoglow/orgs","repos_url":"https://api.github.com/users/hypnoglow/repos","events_url":"https://api.github.com/users/hypnoglow/events{/privacy}","received_events_url":"https://api.github.com/users/hypnoglow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-29T13:32:45Z","updated_at":"2016-05-01T14:56:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ymattw/cdiff/pulls/56","html_url":"https://github.com/ymattw/cdiff/pull/56","diff_url":"https://github.com/ymattw/cdiff/pull/56.diff","patch_url":"https://github.com/ymattw/cdiff/pull/56.patch"},"body":"Use case:\r\nI use cdiff as a difftool. This is what I have in .gitconfig:\r\n```\r\n[diff]\r\n\ttool = cdiff\r\n[difftool \"cdiff\"]\r\n\tcmd = cdiff -s -c always -w 0 \\\"$LOCAL\\\" \\\"$REMOTE\\\"\r\n[difftool]\r\n\tprompt = false\r\n```\r\n\r\nThe problem is when my diff consists of many files where I changed a few lines of code. The difftool will print that files NOT using the pager, but as **cat** would. So I have to scroll my terminal up to see the start of diff. This is caused by **less** feature when `-F` flag is passed to it.\r\n\r\nThis patch can allow me to use\r\n```\r\n[difftool \"cdiff\"]\r\n\tcmd = cdiff -s --force-pager -c always -w 0 \\\"$LOCAL\\\" \\\"$REMOTE\\\"\r\n```\r\nSo the output of **difftool** will be always paged."},"comment":{"url":"https://api.github.com/repos/ymattw/cdiff/issues/comments/216047769","html_url":"https://github.com/ymattw/cdiff/pull/56#issuecomment-216047769","issue_url":"https://api.github.com/repos/ymattw/cdiff/issues/56","id":216047769,"user":{"login":"ymattw","id":1407119,"avatar_url":"https://avatars.githubusercontent.com/u/1407119?v=3","gravatar_id":"","url":"https://api.github.com/users/ymattw","html_url":"https://github.com/ymattw","followers_url":"https://api.github.com/users/ymattw/followers","following_url":"https://api.github.com/users/ymattw/following{/other_user}","gists_url":"https://api.github.com/users/ymattw/gists{/gist_id}","starred_url":"https://api.github.com/users/ymattw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymattw/subscriptions","organizations_url":"https://api.github.com/users/ymattw/orgs","repos_url":"https://api.github.com/users/ymattw/repos","events_url":"https://api.github.com/users/ymattw/events{/privacy}","received_events_url":"https://api.github.com/users/ymattw/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T14:56:58Z","updated_at":"2016-05-01T14:56:58Z","body":"Thanks for the PR.  Sorry I couldn't respond earlier (still in a place with limited internet access).  I didn't expect people to use cdiff like this because it's designed to be invoked in a VCS workspace directly (typing `cdiff` is faster than typing `git cdiff`). But I admit your use case is valid.\r\n\r\nMy concern so far is, is the less option `-+F` widely available? Could you help look into its change log and the versions in major distributions?  Updating the document as well would be very welcome."}}