git/list[1] front-page[2] threads[3] people[4] search[5] about
 

What's new in git.git master branch

From
Junio C Hamano <junkio@cox.net>
Date
Nov 30, 2005, 22:57 UTC
Message-ID
<7vlkz5n3r1.fsf@assigned-by-dhcp.cox.net>

As promised (or warned), most of the things are now graduating from proposed updates to the master branch. The plan is to merge this into "maint" by the weekend after field testing (sorry, you guys are guinea pigs, but I did human experiments on myself first ;-)), and label that 1.0rc4. After that, hopefully no disrupting feature changes until 1.0 final.

Among the miscellaneous fixes, notable recent changes are:
 - bisect can cut down trials if given pathspec (Linus).
 - merge-one-file leaves unmerged entries in index (Linus,
   linux@horizon.com, me).  The recursive merge strategy has
   been also updated to match this but only in no-renaming
   case.
 - diff-files updated to show diff between a higher stage and
   working tree (Linus).  I reverted most of the butchering I
   suggested last night on the list except one obvious bugfix
   Linus agreed.
 - ls-tree rewrite (Linus).
 - making more things work from subdirectories (me).
 - repository format version futureproofing (Martin Atukunda and
   me).  A fix by Tommi Virtanen for the bug reported by David
   Woodhouse is included here.
 - improved gitk (Paulus, Yann Dirson, Pavel Roskin)

I am still holding back "Disable USE_SYMLINK_HEAD" by Pavel Roskin in the proposed updates branch. This makes symref everywhere, not only on symbolic-challenged platforms, to represent HEAD link. As far as I know, Cogito and StGIT are ready for this change, but this will break gitweb, which directly reads from $project/HEAD to find out the object name of the HEAD commit (it needs to do `GIT_DIR=$project git-rev-parse HEAD` now). I think we earlier agreed that this patch will go in sometime after 1.0; correct me if I am wrong.

One interesting change is ls-tree rewrite by Linus. The command does _not_ show tree nodes when running with -r flag anymore. Running "git diff v0.99.9i t/t3100-ls-tree-restrict.sh" after updating to the master tells you the summary of changes in the behaviour.

I've looked at gitweb, Cogito and StGIT to see if this breaks things, and while I think it is safe for these three, authors of Porcelains including these three are asked to double check.

Particularly interesting one is cg-log, which only uses "git-ls-tree -r" to show the list of things being committed for the initial commit, and this change actually fixes a small bug there (I think with the ls-tree before this change it would end up listing tree entries). cg-restore guards itself with a sed script from ls-tree spitting out entries other than blob, so it is not affected, but it could lose that guard now.

Another improvement is around git-merge-one-file and git-diff-files to change how the conflicting path information is left in the index after a failed automerge. This change was prompted by a question from linux@horizon.com (do you have a real name?). We leave the failed merge result in the working tree with conflict markers as before, but unlike the previous round which registered the HEAD commit version at stage0 in the index file, we now leave the index entries unmerged. "git diff" command can be used to see what the changes from our HEAD commit is as before, but you can also say "git diff --base" to see the differences from the merge base, and "git diff --theirs" to see the differences from the other branch that was merged.

Next: Fredrik Kuivinen
Message 1 of 15 in “What's new in git.git master branch”
  1. Junio C HamanoNov 30, 2005
  2. Fredrik KuivinenDec 1, 2005
  3. Junio C HamanoDec 1, 2005
  4. Junio C HamanoDec 2, 2005
  5. Junio C HamanoDec 2, 2005
  6. Fredrik KuivinenDec 2, 2005
  7. Fredrik KuivinenDec 2, 2005
  8. 3/3 update-index: allow --index-info to add higher stages.Junio C Hamano, Dec 7, 2005
  9. git-ls-tree: add "-t" option to always show the tree entriesLinus Torvalds, Dec 1, 2005
  10. Junio C HamanoDec 1, 2005
  11. Linus TorvaldsDec 1, 2005
  12. Junio C HamanoDec 1, 2005
  13. ls-tree: --name-onlyJunio C Hamano, Dec 1, 2005
  14. Junio C HamanoDec 2, 2005
  15. Linus TorvaldsDec 2, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.