{"thread":{"id":"4908","subject":"What's in git.git","startedAt":"2006-07-17T08:29:43Z","lastAt":"2006-07-17T14:44:13Z","messageCount":2,"participants":["Junio C Hamano","Matthias Lederhofer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"23894","messageId":"7vhd1ghbwo.fsf@assigned-by-dhcp.cox.net","threadId":"4908","inReplyTo":null,"subject":"What's in git.git","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-07-17T08:29:43Z","receivedAt":"2006-07-17T08:29:43Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Quite a bit of stuff has been merged, and I have tagged the tip\nof the master as v1.4.2-rc1, before heading for Ottawa.\n\nNotable changes in the \"master\" branch includes:\n\n  - Merge-base has been improved thanks to a test script by\n    ALASCM.\n\n  - A handful gitweb enhancements and fixes by Alp Toker and\n    Luben Tuikov.\n\n  - git-svn is now out of \"contrib/\" status.\n\n  - Many documentation updates.\n\n  - Fixed a performance bug in git-show-branch, which affected\n    git-merge.\n\n  - Fixed a nonsense output from git-fmt-merge-msg when pulling\n    HEAD from a remote repository, spotted by Linus.\n\n  - \"git-log --merge\" helps the archeology during a conflicted\n    merge, per request by Linus.\n\n  - git-grep boolean expression to allow --and, --or, and --not\n    is now in \"master\".\n\n  - A few updates to git-daemon by Matthias Lederhofer.\n\n  - A handful portability fixes by Pavel Roskin and Shawn Pearce.\n\n  - Ref-log updates by Shawn Pearce.\n\n\n* The 'next' branch, in addition, has these.\n\n  - \"checkout -f\" and \"reset --hard\" fixes, when the new tree\n    should have file \"foo\" and the old tree and/or working tree\n    has directory there.  Earlier we failed to instantiate file\n    \"foo\", and did not report an error.  Testing is appreciated.\n\n  - git-apply fixes that was started by a test script by Eric\n    Wong.  Testing is appreciated on this stuff.\n\n  - Perly git by Pasky with help from others.\n\n  - Optional autoconf by Jakub Narebski.\n\n  - A WIP of merge-recursive by Johannes and Alex Riesen.\n\n  - A usability enhancement of format-patch for imap-send users by\n    Josh Triplett\n\n  - A new loose object format support by Linus.\n\n  - An update to diff to make --name-only, --name-status,\n    --check and -s mutually exclusive by Timo Hirvonen.\n\n* The 'pu' branch has an experimental \"read-tree --rename\" to\n  teach renames to git-merge-resolve, but currently it fails a\n  few of its own tests.\n\n\nI noticed that \"git diff\" from subdirectories does not seem to\npick up the configuration from $GIT_DIR/config properly.  I\nsuspect that fixing this breakage properly would help us later,\nas more and more commands learn to use the configuration\nmechanism to store user preferences, and the same fix would be\napplicable to them.  If somebody can fix this while we are away\nthis week, that would be wonderful ;-).\n"},{"id":"23899","messageId":"E1G2UKT-0004ks-RW@moooo.ath.cx","threadId":"4908","inReplyTo":"7vhd1ghbwo.fsf@assigned-by-dhcp.cox.net","subject":"Re: git diff in subdirectories","fromName":"Matthias Lederhofer","fromEmail":"matled@gmx.net","sentAt":"2006-07-17T14:44:13Z","receivedAt":"2006-07-17T14:44:13Z","isPatch":false,"sender":{"key":"matled@gmx.net","avatar":null},"body":"Junio C Hamano <junkio@cox.net> wrote:\n> I noticed that \"git diff\" from subdirectories does not seem to\n> pick up the configuration from $GIT_DIR/config properly.  I\n> suspect that fixing this breakage properly would help us later,\n> as more and more commands learn to use the configuration\n> mechanism to store user preferences, and the same fix would be\n> applicable to them.  If somebody can fix this while we are away\n> this week, that would be wonderful ;-).\nI can think of these ways to fix this:\n- Allow git_config() to work in subdirectories.\n  - It can either change the working directory using\n    setup_git_directory_gently() and go back to the subdirectory\n    later.\n  - Or we add a function to get the full path to the repository.  This\n    could perhaps also be used in setup_git_env() to initialize\n    git_dir?  Otherwise I would just add another function similar to\n    git_path pointing to the full path instead of .git/.  (This is the\n    way I'd prefer.)\n- Fix the it in builtin-diff: change the directory before calling\n  git_config().  Then we would either need to change the directory\n  back or add a parameter to init_revisions to get the prefix without\n  calling setup_git_directory itself.  (I think this will change the\n  least code but wont help other commands.)\n\nAny comments?\n"}]}