logoalt Hacker News

zabzonktoday at 1:26 PM2 repliesview on HN

Well, they deleted it from somewhere. As I assumed they were using a VCS I assumed they deleted it from that. Or are they really short of disk space?


Replies

dkerstentoday at 3:12 PM

Deleted from the current head/trunk of the repo, ie the deployed code.

Deleting "from my codebase" doesn't imply deleting it from history or backups. Just that the code isn't present for future edits or deployments.

The way you're talking, it sounds like you never delete code from your codebase. Do you just comment it out when you change a line to something else or replace a function with a new one? Just add new files?

rcxdudetoday at 2:09 PM

In this context I would assume deleting code to mean deleting it from the current version of the software, not removing from the VCS history entirely.