Joined June 2012
·

Sujay Krishna Suresh

Mr. at D. E. Shaw & Co.
·
Hyderabad, India
·
·
·

Posted to IE 8 Ternary Operator Oddness over 1 year ago

Why not

(element.textContent||element.innerText).toLowerCase() 
Posted to Excluding files from git locally over 1 year ago

@diasjorge Your intention was unclear.
If your title was Excluding untracked files from git locally I'd never have made that comment. :)

Posted to Excluding files from git locally over 1 year ago

@couto The actual purpose of .git/info/exclude is local repo specific ignore. It is not for tracked files.
Chk out the Repo exclude section of https://help.github.com/articles/ignoring-files it is to be used for files "that you don't expect other users to generate".
For tracker files the update-index functionality works better.
Also see http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html#_skip_worktree_bit for more info on how skip-worktree works and why it is different from the assume-unchanged bit.

Posted to Excluding files from git locally over 1 year ago

I'd rather use
git update-index --skip-worktree SOME_FILE

Works better in most cases.

Posted to Easier Java object initialization over 1 year ago

Nice trick for improved readability. But this will affect my application's performance & memory footprint if I start using it everywhere right?

Achievements
7 Karma
0 Total ProTip Views
Interests & Skills