Skip to content

Commit 110ec04

Browse files
resolves #1620 add default value to sole argument of TREE function
1 parent f4abcff commit 110ec04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-essentials",
3-
"version": "0.3.26",
3+
"version": "0.3.27",
44
"description": "The essential GIT commands",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/commands/TREE.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Walker, GitWalkSymbol } from '../models/Walker'
99
* @param {string} [args.ref='HEAD']
1010
* @returns {Walker}
1111
*/
12-
export function TREE({ ref = 'HEAD' }: { ref?: string }): Walker {
12+
export function TREE({ ref = 'HEAD' }: { ref?: string } = {}): Walker {
1313
const o = Object.create(null)
1414
Object.defineProperty(o, GitWalkSymbol, {
1515
value: function({ fs, gitdir, cache }: { fs: FileSystem, gitdir: string, cache: Cache }) {

0 commit comments

Comments
 (0)