threads / discuss / 21756

What's cooking in git.git (Nov 2009, #06; Wed, 25)

Subject: What's cooking in git.git (Nov 2009, #06; Wed, 25)

## tl;dr

12 messages between Nov 26, 2009 and Nov 28, 2009.

replies: 11people: 7as markdown or json

Junio C Hamano· Nov 26, 2009, 01:03 UTC · lore

I wanted to do a 1.6.6-rc1 but somehow ended up spending too much time in mail compose buffer instead of in C-mode today. There are a few topics that are in "stalled" state that may be worthy of being in 1.6.6.

We should start updating the Release Notes to make the 1.7.0 warning a bit more visible.

-- >8 --

Here are the topics that have been cooking. Commits prefixed with '-' are only in 'pu' while commits prefixed with '+' are in 'next'. The ones marked with '.' do not appear in any of the integration branches, but I am still holding onto them.

In 1.7.0, we plan to correct handful of warts in the interfaces everybody agrees that they were mistakes. The resulting system may not be strictly backward compatible. Currently planned changes are:

 * refuse push to update the checked out branch in a non-bare repo by
   default
   Make "git push" into a repository to update the branch that is checked
   out fail by default.  You can countermand this default by setting a
   configuration variable in the receiving repository.
   http://thread.gmane.org/gmane.comp.version-control.git/107758/focus=108007
 * refuse push to delete the current branch by default
   Make "git push $there :$killed" to delete the branch that is pointed at
   by its HEAD fail by default.  You can countermand this default by
   setting a configuration variable in the receiving repository.
   http://thread.gmane.org/gmane.comp.version-control.git/108862/focus=108936
 * "git send-email" won't make deep threads by default
   Many people said that by default when sending more than 2 patches the
   threading git-send-email makes by default is hard to read, and they
   prefer the default be one cover letter and each patch as a direct
   follow-up to the cover letter.  You can countermand this by setting a
   configuration variable.
   http://article.gmane.org/gmane.comp.version-control.git/109790
 * "git status" won't be "git-commit --dry-run" anymore
   http://thread.gmane.org/gmane.comp.version-control.git/125989/focus=125993
 * "git diff -w --exit-code" will exit success if only differences it
   found are whitespace changes that are stripped away from the output.
   http://thread.gmane.org/gmane.comp.version-control.git/119731/focus=119751
 * "git diff -w/-b" won't even produce "diff --git" header when all changes
   are about whitespaces.
   http://thread.gmane.org/gmane.comp.version-control.git/133256

-------------------------------------------------- [Graduated to "master"]

* bg/fetch-multi (2009-11-10) 9 commits.
  (merged to 'next' on 2009-11-21 at 282f464)
 + Re-implement 'git remote update' using 'git fetch'
 + builtin-fetch: add --dry-run option
 + builtin-fetch: add --prune option
 + teach warn_dangling_symref to take a FILE argument
 + remote: refactor some logic into get_stale_heads()
 + Add missing test for 'git remote update --prune'
 + Add the configuration option skipFetchAll
 + Teach the --multiple option to 'git fetch'
 + Teach the --all option to 'git fetch'
* bg/apply-doc (2009-11-22) 4 commits
  (merged to 'next' on 2009-11-22 at b42fece)
 + apply: Use the term "working tree" consistently
 + apply: Format all options using back-quotes
 + apply: apply works outside a repository
 + Clarify and correct -z
* cc/replace (2009-11-19) 3 commits
  (merged to 'next' on 2009-11-21 at 2aaf84b)
 + Documentation: talk a little bit about GIT_NO_REPLACE_OBJECTS
 + Documentation: fix typos and spelling in replace documentation
 + replace: use a GIT_NO_REPLACE_OBJECTS env variable
* mm/maint-hint-failed-merge (2009-11-22) 2 commits.
  (merged to 'next' on 2009-11-22 at c0f64c2)
 + user-manual: Document that "git merge" doesn't like uncommited changes.
 + merge-recursive: point the user to commit when file would be overwritten.
* rj/maint-cygwin-count-objects (2009-11-19) 2 commits.
  (merged to 'next' on 2009-11-22 at 4ba5880)
 + ST_BLOCKS_COUNTS_IN_BLKSIZE to say on-disk size is (st_blksize * st_blocks)
 + git-count-objects: Fix a disk-space under-estimate on Cygwin
* rs/color-escape-has-zero-width (2009-11-23) 1 commit
 + Teach %w() that color escape codes have zero width
* jc/log-stdin (2009-11-23) 5 commits
  (merged to 'next' on 2009-11-23 at ea71363)
 + Add trivial tests for --stdin option to log family
  (merged to 'next' on 2009-11-21 at c3e2e52)
 + Make --stdin option to "log" family read also pathspecs
 + setup_revisions(): do not call get_pathspec() too early
 + Teach --stdin option to "log" family
 + read_revision_from_stdin(): use strbuf
* mr/gitweb-snapshot (2009-11-07) 4 commits.
  (merged to 'next' on 2009-11-21 at e825ad9)
 + gitweb: Smarter snapshot names
 + gitweb: Document current snapshot rules via new tests
 + t/gitweb-lib.sh: Split gitweb output into headers and body
  (merged to 'next' on 2009-10-11 at 22ba047)
 + gitweb: check given hash before trying to create snapshot
* rs/work-around-grep-opt-insanity (2009-11-23) 2 commits.
  (merged to 'next' on 2009-11-25 at bf972d8)
 + Protect scripted Porcelains from GREP_OPTIONS insanity
 + mergetool--lib: simplify guess_merge_tool()

-------------------------------------------------- [New Topics]

* jc/botched-maint-cygwin-count-objects (2009-11-24) 2 commits
  (merged to 'next' on 2009-11-25 at 8aa62a0)
 + Revert "ST_BLOCKS_COUNTS_IN_BLKSIZE to say on-disk size is (st_blksize * st_blocks)"
  (merged to 'next' on 2009-11-22 at 4ba5880)
 + ST_BLOCKS_COUNTS_IN_BLKSIZE to say on-disk size is (st_blksize * st_blocks)

This is a revert of the tip one I merged prematurely to 'next'. The real fix from Ramsay is already in 'master'.

* jc/grep-full-tree (2009-11-24) 1 commit.
 - grep: --full-tree

We probably would want test, doc and a configuration variable to make it default (or non-default) before we can merge it to 'master'.

* uk/maint-shortlog-encoding (2009-11-25) 1 commit.
 - shortlog: respect commit encoding

The fix is a maint material but the patch was against next, so I back-rebased it myself. I tried to be careful but please double check the result.

Perhaps merge it to 'master' before 1.6.6-rc1?

-------------------------------------------------- [Stalled]

* je/send-email-no-subject (2009-08-05) 1 commit.
  (merged to 'next' on 2009-10-11 at 1b99c56)
 + send-email: confirm on empty mail subjects

The existing tests cover the positive case (i.e. as long as the user says "yes" to the "do you really want to send this message that lacks subject", the message is sent) of this feature, but the feature itself needs its own test to verify the negative case (i.e. does it correctly stop if the user says "no"?)

* fc/send-email-envelope (2009-11-22) 1 commit.
 - t9001: test --envelope-sender option of send-email

The new feature itself looked promising; this is just an unrelated test patch.

* jn/rfc-pull-rebase-error-message (2009-11-12) 1 commit
 - git-pull.sh --rebase: overhaul error handling when no candidates are found
I heard this needs at least retitling among other changes?
* sr/vcs-helper (2009-11-18) 12 commits
 - Add Python support library for remote helpers
 - Basic build infrastructure for Python scripts
 - Allow helpers to report in "list" command that the ref is unchanged
 - Fix various memory leaks in transport-helper.c
 - Allow helper to map private ref names into normal names
 - Add support for "import" helper command
 - Allow specifying the remote helper in the url
 - Add a config option for remotes to specify a foreign vcs
 - Allow fetch to modify refs
 - Use a function to determine whether a remote is valid
 - Allow programs to not depend on remotes having urls
 - Fix memory leak in helper method for disconnect
Replaced again, and looking good.  Perhaps Daniel has some comments?
* jh/notes (2009-11-20) 10 commits
 - Add more testcases to test fast-import of notes
 - Rename t9301 to t9350, to make room for more fast-import tests
 - fast-import: Proper notes tree manipulation using the notes API
 - Refactor notes concatenation into a flexible interface for combining notes
 - Notes API: Allow multiple concurrent notes trees with new struct notes_tree
 - Notes API: for_each_note(): Traverse the entire notes tree with a callback
 - Notes API: get_note(): Return the note annotating the given object
 - Notes API: add_note(): Add note objects to the internal notes tree structure
 - Notes API: init_notes(): Initialize the notes tree from the given notes ref
 - Notes API: get_commit_notes() -> format_note() + remove the commit restriction
Johan waits for an Ack from Shawn on "fast-import" one.
* tr/maint-merge-ours-clarification (2009-11-15) 1 commit
  (merged to 'next' on 2009-11-21 at fadaf7b)
 + rebase: refuse to rebase with -s ours

I do not think we reached a concensus for solving conflicts between "give them rope" and "protect users from clearly meaningless combinations". The author obviously is for the latter (and I am inclined to agree); Dscho seems to think otherwise.

* jc/fix-tree-walk (2009-10-22) 8 commits
  (merged to 'next' on 2009-10-22 at 10c0c8f)
 + Revert failed attempt since 353c5ee
 + read-tree --debug-unpack
  (merged to 'next' on 2009-10-11 at 0b058e2)
 + unpack-trees.c: look ahead in the index
 + unpack-trees.c: prepare for looking ahead in the index
 + Aggressive three-way merge: fix D/F case
 + traverse_trees(): handle D/F conflict case sanely
 + more D/F conflict tests
 + tests: move convenience regexp to match object names to test-lib.sh

This has some stupid bugs and reverted from 'next' until I can fix it, but the "temporarily" turned out to be very loooong. Sigh...

* sr/gfi-options (2009-09-06) 6 commits.
 - fast-import: test the new option command
 - fast-import: add option command
 - fast-import: test the new feature command
 - fast-import: add feature command
 - fast-import: put marks reading in it's own function
 - fast-import: put option parsing code in separate functions
Sverre is working on a re-roll to address comments from Shawn.

-------------------------------------------------- [Cooking]

* jc/mailinfo-remove-brackets (2009-07-15) 1 commit.
  (merged to 'next' on 2009-11-25 at 09d498f)
 + mailinfo: -b option keeps [bracketed] strings that is not a [PATCH] marker

Jim Meyering sent a patch to do a subset of what this does; to allow keeping '[SECURITY]' when the subject says '[SECURITY][PATCH]', you need to also teach "am" to pass the new -b option, but that is independent of what Jim showed the need in real-world, so I think this can go in as-is.

Perhaps merge it to 'master' before 1.6.6-rc1?
* jc/checkout-merge-base (2009-11-20) 2 commits
 - "rebase --onto A...B" replays history on the merge base between A and B
 - "checkout A...B" switches to the merge base between A and B

I've been using the first one for a while myself but do not see many users want this (yet); the new feature is not urgent anyway.

* tr/reset-checkout-patch (2009-11-19) 1 commit.
  (merged to 'next' on 2009-11-22 at b224950)
 + {checkout,reset} -p: make patch direction configurable

I do not particularly like a configuration like this that changes the behaviour of a command in a drastic way---it will make helping others much harder.

Perhaps merge it to 'master' before 1.6.6-rc1?
* jn/gitweb-blame (2009-11-24) 8 commits.
  (merged to 'next' on 2009-11-25 at 0a5b649)
 + gitweb.js: fix padLeftStr() and its usage
 + gitweb.js: Harden setting blamed commit info in incremental blame
 + gitweb.js: fix null object exception in initials calculation
 + gitweb: Minify gitweb.js if JSMIN is defined
 + gitweb: Create links leading to 'blame_incremental' using JavaScript
  (merged to 'next' on 2009-10-11 at 73c4a83)
 + gitweb: Colorize 'blame_incremental' view during processing
 + gitweb: Incremental blame (using JavaScript)
 + gitweb: Add optional "time to generate page" info in footer

Ajax-y blame, with further fixes. As this does not seem to break existing features, I am inclined to say that we push this out early, as a new feature with known breakages, to give it wider audience.

* em/commit-claim (2009-11-04) 1 commit
  (merged to 'next' on 2009-11-23 at b5df6fd)
 + commit -c/-C/--amend: reset timestamp and authorship to committer with --reset-author

I am not sure if the option name does a good job at explaining it to the end users, but I think the code and feature is solid.

Perhaps merge it to 'master' before 1.6.6-rc1?
* cc/bisect-doc (2009-11-08) 1 commit
 - Documentation: add "Fighting regressions with git bisect" article

Nobody seems to think this should go to Documentation/technical instead, so unless I hear otherwise, we will have it as-is in 'next' shortly.

Perhaps merge it to 'master' before 1.6.6-rc1?
* nd/sparse (2009-11-25) 20 commits.
  (merged to 'next' on 2009-11-25 at 71380f5)
 + tests: rename duplicate t1009
  (merged to 'next' on 2009-11-23 at f712a41)
 + sparse checkout: inhibit empty worktree
 + Add tests for sparse checkout
 + read-tree: add --no-sparse-checkout to disable sparse checkout support
 + unpack-trees(): ignore worktree check outside checkout area
 + unpack_trees(): apply $GIT_DIR/info/sparse-checkout to the final index
 + unpack-trees(): "enable" sparse checkout and load $GIT_DIR/info/sparse-checkout
 + unpack-trees.c: generalize verify_* functions
 + unpack-trees(): add CE_WT_REMOVE to remove on worktree alone
 + Introduce "sparse checkout"
 + dir.c: export excluded_1() and add_excludes_from_file_1()
 + excluded_1(): support exclude files in index
 + unpack-trees(): carry skip-worktree bit over in merged_entry()
 + Read .gitignore from index if it is skip-worktree
 + Avoid writing to buffer in add_excludes_from_file_1()
 + Teach Git to respect skip-worktree bit (writing part)
 + Teach Git to respect skip-worktree bit (reading part)
 + Introduce "skip-worktree" bit in index, teach Git to get/set this bit
 + Add test-index-version
 + update-index: refactor mark_valid() in preparation for new options
* jc/pretty-lf (2009-10-04) 1 commit.
 - Pretty-format: %[+-]x to tweak inter-item newlines

Perhaps drop the "%-x" part and merge it to 'next' and to 'master' before 1.6.6?

-------------------------------------------------- [For 1.7.0]

* jk/1.7.0-status (2009-09-05) 5 commits.
  (merged to 'next' on 2009-11-21 at 884bb56)
 + docs: note that status configuration affects only long format
  (merged to 'next' on 2009-10-11 at 65c8513)
 + commit: support alternate status formats
 + status: add --porcelain output format
 + status: refactor format option parsing
 + status: refactor short-mode printing to its own function
 (this branch uses jc/1.7.0-status.)

Gives the --short output format to post 1.7.0 "git commit --dry-run" that is similar to that of post 1.7.0 "git status".

* jc/1.7.0-status (2009-09-05) 4 commits.
  (merged to 'next' on 2009-10-11 at 9558627)
 + status: typo fix in usage
 + git status: not "commit --dry-run" anymore
 + git stat -s: short status output
 + git stat: the beginning of "status that is not a dry-run of commit"
 (this branch is used by jk/1.7.0-status.)
With this, "git status" is no longer "git commit --dry-run".
* jc/1.7.0-send-email-no-thread-default (2009-08-22) 1 commit.
  (merged to 'next' on 2009-10-11 at 043acdf)
 + send-email: make --no-chain-reply-to the default
* jc/1.7.0-diff-whitespace-only-status (2009-08-30) 4 commits.
  (merged to 'next' on 2009-10-11 at 546c74d)
 + diff.c: fix typoes in comments
 + Make test case number unique
 + diff: Rename QUIET internal option to QUICK
 + diff: change semantics of "ignore whitespace" options

This changes exit code from "git diff --ignore-whitespace" and friends when there is no actual output. It is a backward incompatible change, but we could argue that it is a bugfix.

* gb/1.7.0-diff-whitespace-only-outout (2009-11-19) 1 commit
  (merged to 'next' on 2009-11-21 at 3375bf4)
 + No diff -b/-w output for all-whitespace changes
* jc/1.7.0-push-safety (2009-02-09) 2 commits.
  (merged to 'next' on 2009-10-11 at 81b8128)
 + Refuse deleting the current branch via push
 + Refuse updating the current branch in a non-bare repository via push

-------------------------------------------------- [I have been too busy to purge these]

* jc/log-tz (2009-03-03) 1 commit.
 - Allow --date=local --date=other-format to work as expected
Maybe some people care about this.  I dunno.
* jc/1.7.0-no-commit-no-ff-2 (2009-10-22) 1 commit.
 . git-merge: forbid fast-forward and up-to-date when --no-commit is given

This makes "git merge --no-commit" fail when it results in fast-forward or up-to-date. It appears nobody wants to have this, so I dropped it.

* ne/rev-cache (2009-10-19) 7 commits.
 . support for commit grafts, slight change to general mechanism
 . support for path name caching in rev-cache
 . full integration of rev-cache into git, completed test suite
 . administrative functions for rev-cache, start of integration into git
 . support for non-commit object caching in rev-cache
 . basic revision cache system, no integration or features
 . man page and technical discussion for rev-cache

The author indicated that there is another round coming. Does not seem to pass the tests when merged to 'pu', so it has been ejected for now.

* pb/gitweb-no-project-list (2009-11-06) 3 commits.
 . gitweb: Polish the content tags support
 . gitweb: Support for no project list on gitweb front page
 . gitweb: Refactor project list routines

I picked these up but didn't queue as Warthog9's comments made certain amount of sense to me.

* ks/precompute-completion (2009-11-15) 4 commits.
  (merged to 'next' on 2009-11-15 at 23cdb96)
 + Revert ks/precompute-completion series
  (merged to 'next' on 2009-10-28 at cd5177f)
 + completion: ignore custom merge strategies when pre-generating
  (merged to 'next' on 2009-10-22 at f46a28a)
 + bug: precomputed completion includes scripts sources
  (merged to 'next' on 2009-10-14 at adf722a)
 + Speedup bash completion loading

Reverted out of 'next', to be replaced with jn/faster-completion-startup topic.

Sverre Rabbelier· Nov 26, 2009, 01:15 UTC · re: Junio C Hamano · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Heya,
On Thu, Nov 26, 2009 at 02:03, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> * sr/vcs-helper (2009-11-18) 12 commits
>  - Add Python support library for remote helpers
>  - Basic build infrastructure for Python scripts
>  - Allow helpers to report in "list" command that the ref is unchanged
>  - Fix various memory leaks in transport-helper.c
>  - Allow helper to map private ref names into normal names
>  - Add support for "import" helper command
>  - Allow specifying the remote helper in the url
>  - Add a config option for remotes to specify a foreign vcs
>  - Allow fetch to modify refs
>  - Use a function to determine whether a remote is valid
>  - Allow programs to not depend on remotes having urls
>  - Fix memory leak in helper method for disconnect
>
> Replaced again, and looking good.  Perhaps Daniel has some comments?
Indeed, Johan, Daniel, is the current version good for next?
-- 
Cheers,

Sverre Rabbelier
Johan Herland· Nov 26, 2009, 07:37 UTC · re: Sverre Rabbelier · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

On Thursday 26 November 2009, Sverre Rabbelier wrote:
Show 20 quoted lines
> Heya,
> 
> On Thu, Nov 26, 2009 at 02:03, Junio C Hamano <gitster@pobox.com> wrote:
> > * sr/vcs-helper (2009-11-18) 12 commits
> >  - Add Python support library for remote helpers
> >  - Basic build infrastructure for Python scripts
> >  - Allow helpers to report in "list" command that the ref is unchanged
> >  - Fix various memory leaks in transport-helper.c
> >  - Allow helper to map private ref names into normal names
> >  - Add support for "import" helper command
> >  - Allow specifying the remote helper in the url
> >  - Add a config option for remotes to specify a foreign vcs
> >  - Allow fetch to modify refs
> >  - Use a function to determine whether a remote is valid
> >  - Allow programs to not depend on remotes having urls
> >  - Fix memory leak in helper method for disconnect
> >
> > Replaced again, and looking good.  Perhaps Daniel has some comments?
> 
> Indeed, Johan, Daniel, is the current version good for next?

As I replied to an earlier "What's cooking" email, it all looks good to me, but I would really like Daniel's ACK on the transport layer parts.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Daniel Barkalow· Nov 27, 2009, 19:17 UTC · re: Sverre Rabbelier · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

On Thu, 26 Nov 2009, Sverre Rabbelier wrote:
Show 20 quoted lines
> Heya,
> 
> On Thu, Nov 26, 2009 at 02:03, Junio C Hamano <gitster@pobox.com> wrote:
> > * sr/vcs-helper (2009-11-18) 12 commits
> >  - Add Python support library for remote helpers
> >  - Basic build infrastructure for Python scripts
> >  - Allow helpers to report in "list" command that the ref is unchanged
> >  - Fix various memory leaks in transport-helper.c
> >  - Allow helper to map private ref names into normal names
> >  - Add support for "import" helper command
> >  - Allow specifying the remote helper in the url
> >  - Add a config option for remotes to specify a foreign vcs
> >  - Allow fetch to modify refs
> >  - Use a function to determine whether a remote is valid
> >  - Allow programs to not depend on remotes having urls
> >  - Fix memory leak in helper method for disconnect
> >
> > Replaced again, and looking good.  Perhaps Daniel has some comments?
> 
> Indeed, Johan, Daniel, is the current version good for next?
Looks good to me.
	-Daniel
*This .sig left intentionally blank*
Sverre Rabbelier· Nov 28, 2009, 00:45 UTC · re: Daniel Barkalow · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Heya,
On Fri, Nov 27, 2009 at 20:17, Daniel Barkalow <barkalow@iabervon.org> wrote:
Show 8 quoted lines
> On Thu, 26 Nov 2009, Sverre Rabbelier wrote:
>> On Thu, Nov 26, 2009 at 02:03, Junio C Hamano <gitster@pobox.com> wrote:
>> > * sr/vcs-helper (2009-11-18) 12 commits
>> > Replaced again, and looking good.  Perhaps Daniel has some comments?
>>
>> Indeed, Johan, Daniel, is the current version good for next?
>
> Looks good to me.
Awesome, I'd say this is good for next then.
-- 
Cheers,

Sverre Rabbelier
Jeff King· Nov 27, 2009, 06:59 UTC · re: Junio C Hamano · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

On Wed, Nov 25, 2009 at 05:03:33PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> * jc/grep-full-tree (2009-11-24) 1 commit.
>  - grep: --full-tree
> 
> We probably would want test, doc and a configuration variable to make it
> default (or non-default) before we can merge it to 'master'.

I can try to pick this up. But did we reach a decision on having a configuration variable?

-Peff
Jonathan Nieder· Nov 27, 2009, 14:45 UTC · re: Jeff King · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Jeff King wrote:
> On Wed, Nov 25, 2009 at 05:03:33PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
>> * jc/grep-full-tree (2009-11-24) 1 commit.
>>  - grep: --full-tree
>> 
>> We probably would want test, doc and a configuration variable to make it
>> default (or non-default) before we can merge it to 'master'.
>
> I can try to pick this up. But did we reach a decision on having a
> configuration variable?

I am not sure, but I will say I would prefer not to have one. Surely we can come up with a UI that does not require searching through git-config(1) to be made convenient.

Couldn’t we just add the option (with test and documentation) first, to get some experience with how we end up using the two forms?

If --full-tree does become the default, I think it should be in 1.7.0, when it is expected for some habits to break (with a configuration variable for the transition, I guess). This might be okay, since constructions like 'git grep foo -- "./*.h"' should still work.

Johannes Schindelin· Nov 27, 2009, 14:38 UTC · re: Jonathan Nieder · lore

Breaking expectations in 1.7.0, was Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Hi,
On Fri, 27 Nov 2009, Jonathan Nieder wrote:
> If --full-tree does become the default, I think it should be in 1.7.0,
> when it is expected for some habits to break (with a configuration
> variable for the transition, I guess).

I recently read more and more about 1.7.0 being expected to break expectations, and more and more expectations about more and more being expected to be broken there.

This is a very slippery slope.  You have been warned.

Ciao, Dscho

Jonathan Nieder· Nov 27, 2009, 15:33 UTC · re: Johannes Schindelin · lore

Re: Breaking expectations in 1.7.0, was Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Johannes Schindelin wrote:
Show 5 quoted lines
> I recently read more and more about 1.7.0 being expected to break 
> expectations, and more and more expectations about more and more being 
> expected to be broken there.
> 
> This is a very slippery slope.  You have been warned.

I was trained by 1.6.0 and 1.5.0, I guess. I think it would be hard to argue that 1.5.0 breaking compatibility in some places (the behavior of 'git add', for example) was a bad thing. I also liked the major 1.6.0 change, but I did have the benefit of being warned far in advance.

Of course, the best break with compatibility is the one that does not break expectations.

I’m on the fence about the default git grep behavior for that reason. I think --full-tree really would be a better default. Every once in a while, I really do find myself wondering why git grep has not given me the results I expected; it can take a moment to remember that this is because I am in a subdirectory. But it is not clear it is worth the change.

Am I right to infer you are less conflicted about this, or was it just a good opportunity to bring to mind that important principle?

Jonathan
Jonathan Nieder· Nov 27, 2009, 18:32 UTC · re: Jonathan Nieder · lore

Re: Breaking expectations in 1.7.0, was Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Hi again,
I wrote:
> I was trained by 1.6.0 and 1.5.0, I guess.

This misses the point. The big difference is that 1.7.0 is not that far away, so it is not the time to tack on world-shaking changes.

So please substitute 1.8.0 or 1.9.0 for 1.7.0 in my message to Peff.

The point doesn’t change, though, which is that I think it makes no sense to add a configuration variable for this before changing the default.

Thanks for the clarification, Jonathan

Junio C Hamano· Nov 27, 2009, 18:29 UTC · re: Jonathan Nieder · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Jonathan Nieder <jrnieder@gmail.com> writes:
Show 14 quoted lines
>> I can try to pick this up. But did we reach a decision on having a
>> configuration variable?
>
> I am not sure, but I will say I would prefer not to have one.  Surely
> we can come up with a UI that does not require searching through
> git-config(1) to be made convenient.
>
> Couldn’t we just add the option (with test and documentation) first,
> to get some experience with how we end up using the two forms?  
>
> If --full-tree does become the default, I think it should be in 1.7.0,
> when it is expected for some habits to break (with a configuration
> variable for the transition, I guess).  This might be okay, since
> constructions like 'git grep foo -- "./*.h"' should still work.

The flipping of "grep" default is too late for 1.7.0, as we have only started discussing it, and I want the release after 1.6.6 to be 1.7.0.

I do not think we want nor need to have other things we have already prepared and have been advertising for 1.7.0 to wait one more cycle.

Jonathan Nieder· Nov 27, 2009, 18:58 UTC · re: Junio C Hamano · lore

Re: What's cooking in git.git (Nov 2009, #06; Wed, 25)

Junio C Hamano wrote:
> The flipping of "grep" default is too late for 1.7.0, as we have only
> started discussing it, and I want the release after 1.6.6 to be 1.7.0.

Yes, I’m sorry I suggested it. I think you had mentioned this plan before, but somehow it escaped my mind.

← back to recent threads