Open-source News

Microsoft Working On AMD GPU Hotplug Support For Linux Driver

Phoronix - Thu, 04/07/2022 - 00:15
Here is a combination not normally expected... Microsoft engineers have submitted patches for review enabling AMD GPU hot-plugging support with the Radeon "AMDGPU" Linux kernel driver...

Ubuntu 22.04 LTS Ready With Mesa 22.0, Early Intel Arc Graphics Enabled & Amber Added

Phoronix - Wed, 04/06/2022 - 20:30
At the end of March Ubuntu 22.04 "Jammy Jellyfish" successfully transitioned from the former Mesa 21.3 series to Mesa 22.0 as the current stable series for these open-source OpenGL/Vulkan drivers. There are also a few changes to mention with Ubuntu 22.04's Mesa support this LTS cycle...

AMD Readies Linux Patches For x2AVIC Support

Phoronix - Wed, 04/06/2022 - 19:37
Back in February AMD engineers sent out a "request for comments" on x2APIC virtualization (x2AVIC) support. Those patches have now been refined beyond the RFC state and sent out today as a patch series for further review on the Linux kernel mailing list...

Tachyum Gets FreeBSD Running On Their Prodigy ISA Emulation Platform For AI / HPC

Phoronix - Wed, 04/06/2022 - 18:16
Tachyum is a startup working on "the world's first universal processor" that can be used from AI to HPC to hyperscale computing needs. The Tachyum processor aims to replace the needs of discrete TPUs / GPUs / XPUs into a single homogeneous processor architecture. While still running as an emulated platform, Tachyum has announced that in addition to Linux they have managed to boot and run FreeBSD on their ISA...

Mesa 22.1 Open-Source Vulkan Drivers Prepare Support For New Extensions

Phoronix - Wed, 04/06/2022 - 17:45
Ahead of the upcoming Mesa 22.1 feature freeze, the Mesa Vulkan drivers both big and small have been preparing merge requests for wiring up a number of recently introduced Vulkan extensions...

New Wayland Protocol Proposed For Fractional Scaling

Phoronix - Wed, 04/06/2022 - 17:19
A new Wayland protocol has been proposed for dealing with fractional scaling of surfaces that paired with wp_viewport can be used for achieving fractional scaling...

AMDVLK 2022.Q2.1 Released With Fixes, New Extension

Phoronix - Wed, 04/06/2022 - 16:43
It had been over one month since the last AMDVLK code drop while now has been succeeded by a new AMDVLK version bring one new extension and several fixes...

10 Git tips we can't live without

opensource.com - Wed, 04/06/2022 - 15:00
10 Git tips we can't live without AmyJune Hineline Wed, 04/06/2022 - 03:00 Up Register or Login to like.

Git tips are a dime a dozen, and it's a good thing because you can never get enough of them. If you use Git every day, then every tip, trick, and shortcut you can find is potentially time and effort saved. I asked Opensource.com community members for their favorite Git hacks. Here they are!

More on Git What is Git? Git cheat sheet Markdown cheat sheet New Git articles add

The git add --patch (-p for short) command kicks off an interactive review of chunks of changes that you can add, split into smaller chunks, or ignore (among other things). That way, you can be sure to limit your changes to a specific commit.

Kevin Thull

I use git add -p to review changes a hunk at a time before they're committed. It lets you check whether you forgot to remove some sketchy ideas, stray comments, or other things you shouldn't commit.

Ryan Price

amend

The Git option --amend is a helpful alternative to creating several commits and then squashing them into one commit through an interactive rebase. I like that you can continually amend your first commit to add additional changes as necessary.

Ashley Hardin

bisect

I know I screwed something up, but I have no idea when. That's what git-bisect is for.

In a previous life, I was a backend developer of Drupal and WordPress at an agency outside of Chicago. I had multiple customer sites I was working on at any one time, bouncing back and forth between them like a pinball. Every now and then, someone would find an undocumented feature in my code and, with fuzzy memory because of all the different client sites, git-bisect would come in handy with helping me find the culprit.

Eric Michalsen

blame

Contrary to the name of the git blame command, I don't use it to blame others. It's great when you're taking over repositories that you didn't initialize. You can see when certain changes were completed and hopefully the commit messages behind them too. It's a wonderful troubleshooting tool.

Miriam Goldman

checkout

I use git checkout - to change to the previous branch. It's handy for switching from a feature branch back to the main development branch and back again.

Kevin Thull

diff

I like the git diff --staged command to review all of the staged changes before committing.

Kevin Thull

status

I seem to touch many files when I work, and git status is a lifesaver. Understanding the state of the working directory and staging area with git status has helped me learn those core concepts in Git and make sure all my work is committed!

Ravi Lachhman, Field CTO at Shipa

squash (rebase -i)

I like to use this command to squash several commits into one. Start by using git rebase -i HEAD~# where # is the number of commits to squash. Change pick to squash on each commit that should become part of the one above it. Then edit your commit messages as you see fit. It keeps the commit history very tidy.

Ryan Marks

update-index

Use this with caution!

$ git update-index --assume-unchanged path/to/file

It's handy for marking a file unchanged that has local changes or just one of those pesky files that continually swears it's been changed even though you've done absolutely nothing to it.

Kevin Thull

worktree

One of my favorites is the git-worktree feature, which manages simultaneous checkouts of different branches in a repo without making a wholesale copy of the files.

Here's an example:

$ git worktree add ../feature-branch feature-branch

KURT W.K.

Wrap up

Now it's time to suggest your own favorite tips. What Git commands save you time, or prevent mistakes? What tips do you pass on to new Git users at your workplace? Let us know as we celebrate 17 years of Git goodness this week!

Opensource.com community members share their favorite Git tips for saving time or preventing mistakes.

Image by:

Opensource.com

Git Opensource.com community What to read next What Git aliases are in your .bashrc? A practical guide to using the git stash command This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Pages