Category Archives: Tips

Your Git Submodule and You

(Pssst. Check out my Git Submodules Cheat Sheet for a quick reference.) This post is the result of my investigations into how Git submodules work and how to use them. My goal in investigating submodules was to decide if they would be an effective way to share specs among the various Ruby FFI implementations (Ruby-FFI [...]

Also posted in Misc, Projects | Tagged , | 4 Comments

Git tip: Fix a mistake in a previous commit

Here’s a handy tip that shows off one of the little conveniences that makes me love Git. In Subversion, if you made a mistake in one of your commits — too bad. At best, you might be able to edit the revision log, if your repository was configured to allow that (Sourceforge repositories aren’t). In [...]

Posted in Tips | Tagged | 6 Comments

Emacs tip: Using lisp expressions in replace-regexp

Miscellaneous tip of the day, mostly putting it here so I’ll remember it later! In recent versions of Emacs, you can use lisp expressions to process the replacement result when running a search/replace regexp command (e.g. replace-regexp). The syntax for that is: \,(expression …) The real handy part is that \0, \1, …, \9 work [...]

Posted in Tips | Leave a comment