The Jerusalem PostMichael Caine, legendary British actor and two-time Oscar winner, dies at 93InquirerPUP: 2027 college entrance test for Sta. Mesa campus now openBollywood HungamaCinépolis India crosses 500-screen milestone; plans to add around 40 screens annually20 MinutenAmanda Seyfried reicht nach knapp zehn Jahren die Scheidung einBBC عربيهل يُغيّر صعود اليمين في إسبانيا موازين العلاقة بين أوروبا والعالم العربي؟Ars TechnicaBehold, the trailer for Amazon MGM's live-action VoltronTGCOM24 SpettacoloÈ morto Michael Caine, l'attore inglese aveva 93 anniThe South African · LifestyleWorld AIDS Day: 7.86 million South Africans living with HIVSDP Espectáculos¿Juan Pablo Talavera murió? Esto se sabe tras alarmantes mensajes en InstagramSudinfo« Ce que vous avez perdu, vous ne le récupérerez pas » : plus d’un million de Belges vont voir leur salaire augmenter au 1er janvier, mais pour d’autres... les nouvelles sont moins bonnesPremium TimesAfrilition: Identity for posterity, By Adéwálé ÀjàdíGlobal NewsCanadians overwhelmingly support Russia’s exclusion from World Juniors, poll suggests
The Daily Newsstand · Free, Always
Tuesday, December 1, 2026

You are reading Joho no Todai on KioskNews: newspapers from many countries on one stand, each linked to its original. What other papers report

Git 2.98.0-rc0 Adds Commit Squashing, and Git 3.0 Is Set to Default New Repositories to SHA-256

Translate

Git maintainer Junio C Hamano created the signed tag for Git 2.98.0-rc0 at 8:25:17 a.m. PST on November 30, 2026. He announced the early release candidate for testing at 9:24:22 a.m. PST the same day.

Git records snapshots of files as commits and tracks the history of changes. Commits made in small steps during development are sometimes easier to read later as one coherent change.

The experimental git history command, introduced in Git 2.54, could already edit commit messages and split commits. The Git 2.98 release notes describe the new squash subcommand for combining commits.

According to the Git 2.98.0-rc0 manual, on a linear history, git history squash HEAD~3..HEAD combines the last three commits into one. git history squash HEAD~5..HEAD~2 can combine a range earlier in the history.

The combined commit uses the author information from the oldest commit in the range and the file state from the newest. Users can edit the combined commit message in an editor. Commits after the selected range are replayed on top of the rewritten history.

Specifying a range directly makes the intent clearer than using interactive rebase (git rebase -i) to edit history. The existing rebase workflow remains useful when users need more control over individual commits.

Git 2.98.0-rc0: How experimental git history squash works

TargetCondition or settingBehavior
Squashing and replaying commits
Selected rangeConnected, with one tipSquashed into one
Later historyAfter the rangeReplayed on the new history
No parentWithin selected rangeOperation refused
Merge commitWithin selected rangeSquashed if eligible
Merge commitTo be replayedOperation refused
ConflictsOperation could encounter themOperation refused
Local branches, refs, and signing
BranchDefaultAlso updates descendants
BranchBranches within range
and misses the tip
Refused by default
Branch--update-refs=headUpdate only the current HEAD
Tags and
remote-tracking refs
Regardless of settingUnchanged
SigningSigning enabledRewritten and replayed
commits are signed

What gets rewritten and signed

The selected commits must form a connected range with a single tip. A root commit, which has no parents, cannot be squashed. Aside from the oldest commit, each selected commit's parents must be in the range or be parents of that oldest commit. A merge commit inside the range can be squashed if it meets the requirements. The command refuses to proceed if the commits to be replayed include a merge. Rewrites that can encounter conflicts are also unsupported.

By default, Git updates local branches that descend from the rewritten commits. It refuses the operation if a local branch forks within the range and does not pass through its tip. To restrict updates to the current HEAD, use --update-refs=head. Tags and remote-tracking refs are left alone.

Use --dry-run to see what the rewrite would do. The command reports the proposed updates without changing refs, although it writes any needed new objects into the repository.

In Git 2.98, git history and its subcommands support the signing setting commit.gpgSign and the --gpg-sign and --no-gpg-sign options. When signing is enabled, Git can sign replayed commits as well as the rewritten commits.

Git 2.98.0-rc0's git history does not run hooks that trigger automatically during other Git operations. That matters in environments that use hooks to run checks.

Rewriting history to make it easier to read can affect more than the selected range. A simpler command still requires knowing which branches will be rewritten and which commits will be signed.

Storage settings in Git 2.98

Git standardized the terminology for the format used to store refs such as branches and tags across command-line flags, environment variables, configuration, and source code. For example, the option is --ref-storage-format and the environment variable is GIT_REF_STORAGE_FORMAT. In git init, the previous --ref-format remains as a deprecated alias.

The setting for comparing working-tree file timestamps against Git's index at nanosecond precision also changed. The index tracks information including what will go into the next commit. Git previously used the build-time USE_NSEC setting. Git 2.98 uses the runtime setting core.useNanosec. Linux distributions can ship a single binary and, on supported builds, select the behavior based on the filesystem's capabilities. The feature cannot be used safely in some environments and defaults to off.

Defaults planned for Git 3.0

The Git 2.98 tag's breaking changes document says Git 3.0 plans to change the default hash for new repositories from SHA-1 to SHA-256. Git identifies files, commits, and other objects by hash. It has defenses against known attacks on SHA-1, and the development team is accounting for the possibility of further attacks.

Git 3.0: Planned defaults for new repositories

SettingBeforeAfter (planned)
Hash functionSHA-1SHA-256
Depends on tool support
Ref storage formatfilesreftable
Depends on support in other Git implementations
Initial branch namemastermain

The change applies to newly created repositories. The document says there is no plan to remove the SHA-1 format itself. The change also depends on support for the new format in Git libraries, developer tools, and hosting services. Git 2.98 adds git ls-remote --show-object-format, which reports the remote repository's hash format even when it is empty.

The default storage format for refs in new repositories is also set to change from files to reftable. On a case-insensitive filesystem, for example, the files format cannot store ref names that differ only in capitalization. The reftable format does not use ref names as file paths, avoiding that collision. Other Git implementations need to support reftable before the default can change.

Git also plans to change the default branch name for new repositories from master to main. It expects to make Rust mandatory for building Git, although that change could be deferred if it proves too disruptive for distributions.

Compatibility changes affect tools outside Git itself. Automation that works directly with the ref storage layout and developer tools that assume a fixed hash format are worth testing before the defaults change.

Why version 2.98?

The release notes describe Git 2.98 as the third-to-last release in preparation for the long-awaited Git 3.0. A September 23, 2026, report from a developer meeting says the jump in numbering was meant to signal upcoming compatibility changes.

The meeting discussed releasing Git 2.98 in December 2026 and Git 2.99 and 3.0 in spring 2027. March and April came up as possibilities, but the timing was undecided at the time of the report. The breaking changes document in the Git 2.98 tag gives no release date for Git 3.0.

Git's developers enable compatibility-breaking features at build time with WITH_BREAKING_CHANGES and test them continuously. Giving surrounding tools a way to exercise the new behavior before 3.0 gives them time to prepare.

Git is making it easier to group changes in history while preparing to revise defaults it has carried for years. Developers approaching Git 3.0 have new features to try and time to revisit settings they may never have had to think about.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.