• 0 Posts
  • 12 Comments
Joined 2 years ago
cake
Cake day: August 18th, 2023

help-circle


  • The post doesn’t say “imperative”, it just differentiates between defining pipeline steps and defining the logic within a step.

    …also, TCL? I haven’t used it for ops, but my memory of tcl/tk is extremely negative.

    …also also: a core part of a build, CI, or, CD pipeline is almost always invoking binaries to run a command. That’s why shell scripts are so ubiquitous in pipeline-logic: invoking binaries is what they’re for. And it’s very difficult to do that a declarative way: Make comes close, but it’s difficult to track any side-effects that aren’t “update these files”, and a huge amount of CI/CD is no longer just “update a file”.


  • Every single time I’ve tried to work on a file using tabs, I’ve had to configure my tabstop to be the same width the original author used in order to make the formatting reasonable. I understand that in theory customizable tabstops is preferable, but I’ve yet to see it work well.

    (For what it’s worth, I think that elastic tabstops, had they been the way tabs worked in text files to begin with, would have been far preferable.)



  • I think you missed the last sentence of the post:

    Finally, when you reference a Git hash for posterity, e.g. in another commit message, I’d recommend always using the full value.

    The git config is just for display purposes in terminal output. That only needs to be unique as of the time it’s displayed; and as I noted, the current default behavior is to adjust the size dynamically, so the displayed hash segment is always unique no matter how big the repo is.



  • I’m not sure I understand what issue Linus et al. are trying to solve. If the full hash is used whenever a commit reference is saved somewhere, then why does it matter how core.abbrev is configured? In particular, why use a static value, when git’s default behavior is to compute a value based on the current number of objects in the repository? (Edit: just noticed this post is over 10 years old. Maybe git didn’t have this automatic default behavior back then.)

    For what it’s worth, jj has an even better solution, which is to highlight the shortest unique prefix in each specific hash it displays.