Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Anyone willing to build a "ls" with Subversion integration?
5 points by olalonde on March 23, 2010 | hide | past | favorite | 5 comments
I've been Googling around for a while looking for a "ls" script that would highlight versioned/non-versioned files differently (or even display a tag next to their filename Added/Modified/Deleted/etc.).

I haven't found anything, so if you're looking for a fun project, here's one :) I would build it myself but I'm still a noob at shell scripting.

I've talked to a couple of friends about this project and they all seemed to like the idea.

If anyone's interested in building this, keep us updated here !

UPDATE: I've found this script that colorizes some svn commands: http://snipplr.com/view.php?codeview&id=28748




svn status does not provide you enough information ?


No, i need two commands, ls -l and svn st to find out if a file is modified and what its perms are.

Its like saying "there is no need for ack, as i can construct the same results from find, grep, and xargs." While it is doable, common cases warrant simplified tools so why not create them?


Right, perhaps I should simply take the habit of using svn status when in svn repositories. Still it would be cool to have it integrated with the regular "ls". Obviously, it's more of a nice-to-have than a must-have.


Obviously this can be expanded by adding colorized svn output and setting your svn status and ls formats as you would like.


.bashrc:

alias ls="my_ls"

my_ls (chmod +x):

if [ -d .svn ]; then svn status else ls fi




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: