finestructure, to random
@finestructure@mastodon.social avatar

Folks who squash their merges, I’m curious why you are making that trade-off. I’m guessing the pro argument is a cleaner merge graph?

The big argument against it for me is that you lose granularity for git bisect. I've often been able to narrow down breakage (sometimes long past the merge) due to individual commits in the merge. If I'd merged in a giant blob all I'd have had to go by is that giant blob. (1/2)

erlend, (edited ) to fediverse
@erlend@writing.exchange avatar

Several years in the making, GitLab is now very actively implementing ! 🙌

https://gitlab.com/groups/gitlab-org/-/epics/11247

The end-goal is to support AP for merge requests (aka pull requests), meaning git.alice.dev can send a merge request to gitlab.com/Bob/project.git

First bite-sized todo on the implementation path there is ‘subscribe to project releases’.

Smart move by ; through ActivityPub they’re getting a distributed version of GitHub’s social layer.

@fediversenews

aral, to github
@aral@mastodon.ar.al avatar
ascherbaum, to python
@ascherbaum@mastodon.social avatar

My blog is running with , and I have a script which runs as pre-commit and checks all files.

Things like:

  • certain keywords are cursive
  • certain tags exist, based on content
  • invalid links
  • http links
  • code blocks are marked
  • preview image exists
  • preview text exists
  • ... some more

Is this something other people are interested in? Then I make the script configurable, and more formal.

GayCookie, (edited ) to random

I'm hosting my own Git instance for a while now (Gitea) and I'm still not sure if I want to have it as my default/main instance or stick with GitHub as my main.

What would you do?
I'm also very curious what self-hosted instances you guys use.

#selfhosting #git #opensouce

dandels, to vim

some tips from living in the terminal:

mv foo{,.bak} is equivalent to mv foo foo.bak

cd - goes back to your previous directory. Also see pushd, popd if you want to treat the directory history as a stack. Nevertheless, excessively typing commands for navigating just gets you repetitive strain injury. I use ranger as a TUI file manager. Hopping in/out of the shell is as easy as S or Ctrl+D.

vim has an inbuilt diffing tool, vimdiff. It opens the two files side by side with color highlighting. It might not be provided by your default vim package. On Arch it's provided by gvim.

git rebase -i HEAD~5 is imo a better way to hack at your last 5 commits than (rebase, reorder, squash, edit, etc) than what I've seen GUI git tools do.

git add -p, git checkout -p(for "patch") runs the command on one chunk at a time, allowing you to inspect each one before doing anything. It's useful if you want to commit or undo only part of yout work. -p works for other commands too.



InternetIsScary, to fediverse French
@InternetIsScary@mstdn.social avatar

The fediverse is amazing!

I can’t get over how cool it is to view my posts from any server. I’m definitely going to use activitypub for my social media I’m planning on making. I was going to use @Discourse , but considering it’s like where you are only able to self host and each instance of discourse can’t interconnect makes me kinda sad. But activitypub seems like the only way I feel happy in both ways.

@lemmy

adamchainz, (edited ) to random
@adamchainz@fosstodon.org avatar

Would you rather...

kkarhan, to random
@kkarhan@mstdn.social avatar

The listings of are just ridiculous in that their quality is absolute garbage:
https://thebad.space/listings/page/1

Assholes like s.yelvington.com ( https://thebad.space/location/44e22455-f216-4e86-9569-9081c659bd66 ) are in the same category as tech.lgbt ( https://thebad.space/location/e840d57b-f424-4c1c-9cb2-355cbefed252 ) with no context or searchable to see any & to find any actional reason...

You know,like a good blocklist would do... [ https://github.com/greyhat-academy/lists.d/commit/a920b743805974cf8a188cbb0bc4f940975bdac3 ]

slashtechno, to github
@slashtechno@fosstodon.org avatar

I'm unsure if signing my commits is the best idea. When my key expires, commits will show on as unverified. Should I stop signing my commits? I'm aware you can renew keys. However, if you no longer have access to the key, then it can't be renewed.

If a GPG key could no longer be retrieved, all commits signed with that key would appear as unverified, from what I understand.

Perhaps for more visibility? :blobcatshrug:

SuitedUpDev, to random
@SuitedUpDev@mastodon.online avatar

Well then.... I just accidentally pushed to main.

hbons, to vscode
@hbons@mastodon.social avatar

I want to shift focus to improving VS Code's version control flows soon. 🔀

what are some things you like/dislike currently? more importantly, what's frustrating you?

I'll start: I'm missing a visual git-log and feel disoriented because of it.

anderseknert, to opensource
@anderseknert@hachyderm.io avatar

A surprisingly common mistake people do when contributing to projects is to forget the (often required) sign-off on their commit, and then close the PR only to open a new one where the sign-off is included. This isn’t needed! Next time, just:

git commit --amend --signoff
git push --force

And your signoff will be added to the commit in your PR.

kernellogger, to linux
@kernellogger@fosstodon.org avatar

A question for experts on bisecting the :

Assume someone runs into a regression when updating from 6.1.90[1] to 6.6.30 that needs bisecting. What do you suggest:

  • Check manually which mainline release (e.g. 6.2, 6.3, ...) introduced the problem and afterwards bisect between that and the previous release.

  • Bisect straight between 6.1 and 6.6.30.

1/ I guess I would definitely go for…

[1] let's assume that 6.1 was fine for this scenario to keep things simpler

gabrielesvelto, to firefox
@gabrielesvelto@fosstodon.org avatar

FYI it's now official: development will soon be moving to a repository, replacing the one that's been in use since 2006

https://groups.google.com/a/mozilla.org/g/dev-platform/c/5MrpDdHIr-Y/m/p6ZHxy6sBQAJ

vwbusguy, to github
@vwbusguy@mastodon.online avatar

If you're thinking of self-hosting your hmm and/or mirroring your existing repos on , , etc., then I recommend @forgejo !

It's a fully soft fork of sponsored by the great folks at @Codeberg !

While it has native CI support, it also integrates easily with , , etc. as well.

hynek, to opensource
@hynek@mastodon.social avatar

My this year’s holiday gift to maintainers so they have something to link to, and to contributors so they don't make a painful mistake in the first place:

Don’t Start Pull Requests from Your Main Branch

https://hynek.me/articles/pull-requests-branch/

louis, (edited ) to random
@louis@emacs.ch avatar

I've seen a lot of pro-, anti- discussion recently.

Not that I love Git, but it does the job and almost all deployment platforms have support for Git only.

And, am I the only one who needs a staging area because I have to commit only a part of my changes? Often even line-based.

And, sometimes I want to squash 20 ugly commits into a single one, destructively changing the commit history. Really!

And, sometimes I need a hosting platform for a project and there is not a single serious one for Fossil. What's the point in using Fossil when I have to do a Git-export?

And, most importantly, there is :blobcatmeltlove:​.

So ... although I can feel the love for Fossil, it simply doesn't work for most of my use cases.

jani, to random
@jani@fosstodon.org avatar

I usually have lots of git branches with various iterations of whatever I'm working on. And I lose track what each branch contains. git range-diff is great, but a bit tedious.

Here's a helper alias to "range compare" two branches. It finds their common ancestor, and range diffs them.

Usage: git range-compare rev1 [rev2]

~/.gitconfig:
[alias]
range-compare = "!f() { rev1=${1:?no branch to compare to}; rev2=${2:-HEAD}; git range-diff $(git merge-base $rev1 $rev2) $rev1 $rev2; }; f"

#git

britter, to linux
@britter@chaos.social avatar

It was surprisingly easy to port all my custom fish and git config to home manager. The next big thing I need to figure out is how to manage multiple java versions and assign their directory to environment vars. Currently using @asdf_vm but it doesn‘t seem to work on @nixos_org.

scy, to random
@scy@chaos.social avatar

Do you host your own #Git server? What are you using for it?

I’m looking for something that’s really low maintenance, and I probably don’t need project management, issue tracking, or pull requests. Maybe not even user management. It’s probably just me and my repos.

I know that I can just use SSH+Git on the remote side, but I maybe would like some kind of web interface. Maybe gitweb? But it’s Perl. Or cgit? Any other suggestions like these two?

#selfhosting

kubikpixel, (edited ) to random
@kubikpixel@chaos.social avatar

Which surfing do you use for your public ? Why did you choose @github, @gitea, , @Codeberg or a completely different one, why & which one? 🧑‍💻 :BoostOK:

(multiple selection possible)

jbzfn, (edited ) to opensource
@jbzfn@mastodon.social avatar

"In 2020, the community discovered that GitHub has a for-profit software services contract with the USA Immigration and Customs Enforcement (ICE). Activists, including some GitHub employees, have been calling on GitHub for two years to cancel that contract. GitHub's primary reply has been that their parent company, Microsoft, has sold Microsoft Word for years to ICE without any public complaints"
@conservancy


https://sfconservancy.org/GiveUpGitHub/

fosskers, to random Japanese

What’s a good long term solution for self-hosted ?

wyndix, to random

How good is for writing?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • lostlight
  • All magazines