Hacker Newsnew | past | comments | ask | show | jobs | submit | LiquidityC's commentslogin

Checked all my PRs that merged on the 23:d. Checked out each branch locally, rebased on trunk and ran 'git diff'. One of them had a diff which was the entire change that was marked as merged in the GH web ui.

This happened in complete silence and since the PR in question was just code refactor I would most likely never have noticed.


Considering switching to original method of simple git repo hosting and email patches like the kernel does it. A workflow I favor. Turns out there are no hosting services which provide such solutions. Lots of manual hosting setup and config required... Sad that GitHub sort of cast the mold for how git hosting has been done for the past 2 decades.

My goto makefile for any new c/c++ project.


I've found this to come in handy, and it is easy to modify to immediate needs.

  .DEFAULT_GOAL = help

  .PHONY: help
  ##@ HELP
  help: ## display this help
          @awk 'BEGIN {FS = ":.*##"; \
          printf "\033[1mUSAGE\n\033[0m  make \033[36m<TARGET>\033[0m\n"} \
          /^[a-zA-Z_-]+\.*[a-zA-Z]*:.*?##/ {printf "  \033[36m%-12s\033[0m %s\n", $$1, $$2} \
          /^##@/ {printf "\n\033[1m%s\033[0m\n", substr($$0, 5)} \
          /^###/ {printf "\033[0m\t\t %s\033[0m\n", substr($$0, 4)}' $(MAKEFILE_LIST)

  .PHONY: foo bar baz
  ##@ DEMO
  foo: bar ## foo target
  ### additional foo target details
          @echo foo

  bar: ## bar target
          @echo bar

  baz: ## baz target
          @echo baz


Lots of other good Makefile `help` target suggestions here.

   https://gist.github.com/prwhite/8168133
My favorite is (since it only depends on a recent bash):

   SHELL:=/bin/bash
   .PHONY: help help_target-funky+names.0k and_with_2_targets_and_spaces_like_bison
   help_target-funky+names.0k and_with_2_targets_and_spaces_like_bison: ## Funky ones & bison dual target display ok
           echo "bad - why are you not displaying?"
   help: ## bash help
   help: ## moar bash help
           @RE='^[a-zA-Z0-9 ._+-]*:[a-zA-Z0-9 ._+-]*##' ; while read line ; do [[ "$$line" =~ $$RE ]] && echo "$$line" ; done <$(MAKEFILE_LIST) ; RE=''



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: