Skip to content

Commit

Permalink
docs: fix simple typos in import/README.md (lerna#4115)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir authored Nov 15, 2024
1 parent 3d6b619 commit c3e601b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/commands/import/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ $ lerna import ~/Product --flatten

### `--dest`

When importing repositories, you can specify the destination directory by the directory listed in lerna.json.
When importing repositories, you can specify the destination directory by the directory listed in `lerna.json`.

```
$ lerna import ~/Product --dest=utilities
```

### `--preserve-commit`

Each git commit has an **author** and a **committer** (with a separate date for each). Usually they're the same person (and date), but since `lerna import` re-creates each commit from the external repository, the **committer** becomes the current git user (and date). This is _technically_ correct, but may be undesirable, for example, on Github, which displays both the **author** and **committer** if they're different people, leading to potentially confusing history/blames on imported commits.
Each git commit has an **author** and a **committer** (with a separate date for each). Usually they're the same person (and date), but since `lerna import` re-creates each commit from the external repository, the **committer** becomes the current git user (and date). This is _technically_ correct, but may be undesirable, for example, on GitHub, which displays both the **author** and **committer** if they're different people, leading to potentially confusing history/blames on imported commits.

Enabling this option preserves the original **committer** (and commit date) to avoid such issues.

Expand Down

0 comments on commit c3e601b

Please sign in to comment.