Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "JGit/New and Noteworthy/1.3"

(Other Notable Changes)
({{code|DiffCommand}})
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= New Porcelain Commands =
 
= New Porcelain Commands =
* '''StashListCommand'''
+
== {{code|StashListCommand}} ==
** Provides a collection of all the currently stashed commits in a repository
+
* Provides a collection of all the currently stashed commits in a repository
== Submodule Commands ==
+
== {{code|Submodule Commands}} ==
* '''SubmoduleAddCommand'''
+
=== {{code|SubmoduleAddCommand}} ===
** Registers a new submodule repository at a path in a parent repository
+
* Registers a new submodule repository at a path in a parent repository
* '''SubmoduleInitCommand'''
+
=== {{code|SubmoduleInitCommand}} ===
** Initializes the repository's config with entries from the ''.gitmodules'' file
+
* Initializes the repository's config with entries from the ''.gitmodules'' file
* '''SubmoduleStatusCommand'''
+
=== {{code|SubmoduleStatusCommand}} ===
** Provides the status of all the registered submodules in a repository
+
* Provides the status of all the registered submodules in a repository
* '''SubmoduleSyncCommand'''
+
=== {{code|SubmoduleSyncCommand}} ===
** Updates the remote URL used by a submodule with the value currently in the ''.gitmodules' file
+
* Updates the remote URL used by a submodule with the value currently in the ''.gitmodules' file
* '''SubmoduleUpdateCommand'''
+
 
** Clones missing submodules and merge, rebases, or checks out the commit SHA-1 of the submodule in the index
+
=== {{code|SubmoduleUpdateCommand}} ===
 +
* Clones missing submodules and merge, rebases, or checks out the commit SHA-1 of the submodule in the index
 +
 
 
= Updated Porcelain Commands =
 
= Updated Porcelain Commands =
* '''CloneCommand'''
+
=={{code|CloneCommand}}==
** Supports cloning submodules after the parent repository clone finishes
+
* Supports cloning submodules after the parent repository clone finishes
* '''DiffCommand'''
+
=={{code|DiffCommand}}==
** Supports setting a custom source and destination prefix (defaults to ''a/'' and ''b/'')
+
* Supports setting a custom source and destination prefix (defaults to ''a/'' and ''b/'')
** Supports setting the number of context lines to display (defaults to 3)
+
* Supports setting the number of context lines to display (defaults to 3)
* '''LogCommand'''
+
* Supports setting a {{code|ProgressMonitor}} that will be provided updates on the diff formatting progress
** Supports setting the maximum number of commits to display
+
 
** Supports setting the number of commits to skip over before returning any
+
=={{code|LogCommand}}==
= Windows Bug Fixes =
+
* Supports setting the maximum number of commits to display
* ''core.filemode'' config option is now checked when determining file mode to use checked in files.  This fixes a bug where previously files committed on Windows would lose the executable bit if previously set.
+
* Supports setting the number of commits to skip over before returning any
 +
 
 +
= Bug Fixes =
 +
[https://bugs.eclipse.org/bugs/buglist.cgi?chfieldto=2012-02-24;chfield=bug_status;query_format=advanced;order=Importance;chfieldfrom=2011-12-22;bug_status=RESOLVED;bug_status=CLOSED;resolution=FIXED;resolution=DUPLICATE;product=JGit;classification=Technology;list_id=385119 7 Bugs and 4 enhancement requests] were closed
 +
== Windows ==
 +
* ''core.filemode'' config option is now checked when determining file mode to use for checked in files.  This fixes a bug where files committed on Windows would lose the executable bit if it was previously set.
 +
 
 
= Other Notable Changes =
 
= Other Notable Changes =
* Revision strings such as ''stash@{0}'' can now be resolved to commits when calling {{codeblock|Repository.resolve}}
+
* Revision strings that are refs following by an ''@'' followed by an ordinal specification such as ''stash@{0}'' can now be resolved to commits when calling {{code|Repository.resolve}}

Revision as of 16:06, 5 February 2012

New Porcelain Commands

StashListCommand

  • Provides a collection of all the currently stashed commits in a repository

Submodule Commands

SubmoduleAddCommand

  • Registers a new submodule repository at a path in a parent repository

SubmoduleInitCommand

  • Initializes the repository's config with entries from the .gitmodules file

SubmoduleStatusCommand

  • Provides the status of all the registered submodules in a repository

SubmoduleSyncCommand

  • Updates the remote URL used by a submodule with the value currently in the .gitmodules' file

SubmoduleUpdateCommand

  • Clones missing submodules and merge, rebases, or checks out the commit SHA-1 of the submodule in the index

Updated Porcelain Commands

CloneCommand

  • Supports cloning submodules after the parent repository clone finishes

DiffCommand

  • Supports setting a custom source and destination prefix (defaults to a/ and b/)
  • Supports setting the number of context lines to display (defaults to 3)
  • Supports setting a ProgressMonitor that will be provided updates on the diff formatting progress

LogCommand

  • Supports setting the maximum number of commits to display
  • Supports setting the number of commits to skip over before returning any

Bug Fixes

7 Bugs and 4 enhancement requests were closed

Windows

  • core.filemode config option is now checked when determining file mode to use for checked in files. This fixes a bug where files committed on Windows would lose the executable bit if it was previously set.

Other Notable Changes

  • Revision strings that are refs following by an @ followed by an ordinal specification such as stash@{0} can now be resolved to commits when calling Repository.resolve

Back to the top