Digital Craftsman
  • Search
Sign in Subscribe
git

Git undo assume-unchanged

  • Christian Kolb

Christian Kolb

May 7, 2014

Did you ever just mark a file as assume-unchanged and wanted to take that back? I searched a long time until I found this question on stackoverflow:

https://stackoverflow.com/questions/17195861/undo-a-git-update-index-assume-unchanged-file

In short:

git update-index --no-assume-unchanged <file>

Reduce input of functions to improve readability

Reduce input of functions to improve readability

One of the elements we evaluate when reading a function call are the parameters given to it. To understand what's happening inside (not how, just what) it's necessary to see the relevant data as part of the function call. Counterintuitiv, this sometimes means to increase the amount of parameters or
Mar 13, 2023 1 min read
Where and how to use abstraction

Where and how to use abstraction

Abstraction is one if the first things a developer learns when starting programming. It's repeated again and again from "Clean Code" to every other introduction book. It's so ingrained, that we don't really question why. As most developers I also started to use abstraction everywhere. Abstraction as a goal in
Mar 8, 2023 2 min read
Delete JSON property in Postgres

Delete JSON property in Postgres

When migrating JSON data in Postgres, it's often necessary to delete properties within a JSON object. There's a neat operator for it #-. In this example the property comment was stored as an empty string instead of the property just missing. So we delete the property for all domain messages
Dec 26, 2022
Digital Craftsman © 2023
  • Datenschutz
  • Impressum
Powered by Ghost