Git Graph RS is a derivative work: its webview and extension host layers are
ported from Git Graph by mhutchie, and it incorporates third-party components
listed below. This file grants rights only to the parts original to this
project; the other parts remain governed by their upstream licenses.

# Original contributions

Copyright (c) 2026 penghongxia

The "Original Contributions" are the parts of this repository that are not
derived from any third-party work. They include the Rust native engine
(./native/), the build, benchmark and packaging scripts (./scripts/), the
custom-made icons marked as such in ./web/utils.ts, and the
./resources/git-graph-rs-* assets.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

# Third-party components

The remaining parts of this repository are governed by the licenses of their
respective upstream projects, reproduced in the ./licenses directory:

- The webview and extension host layers (./src/, ./web/, and the compiled
  ./out/, ./media/), ported and modified from Git Graph by mhutchie
  (https://github.com/mhutchie/vscode-git-graph), are subject to
  licenses/LICENSE_GIT_GRAPH. That license DOES NOT grant permission to
  publish, distribute, sublicense, and/or sell derivative works of that
  software. Anyone redistributing this project must comply with that
  restriction as it applies to the ported layers, and the Rust engine in
  ./native/ may be used under the MIT grant above independently of them.

- The Askpass implementation (./src/askpass/) and the Find Git Executable
  methods in ./src/utils.ts derive from the Visual Studio Code Git Extension,
  Copyright (c) 2015 - present Microsoft Corporation (MIT;
  licenses/LICENSE_MICROSOFT).

- SVG icons generated by Octicons (Copyright (c) 2019 GitHub Inc., MIT;
  licenses/LICENSE_OCTICONS), icons from vscode-icons (Copyright (c)
  Microsoft Corporation, CC-BY-4.0; licenses/LICENSE_VSCODE_ICONS), and
  unmodified icons from Icons8's iOS 11 pack (CC BY-ND 3.0;
  licenses/LICENSE_ICONS8) are used in ./web/utils.ts.

- The native addon statically links Rust crates that are MIT OR Apache-2.0
  licensed (see licenses/THIRD-PARTY-NOTICES.md, licenses/LICENSE-MIT and
  licenses/LICENSE-APACHE for the license texts).

This file is not legal advice. If the terms above ever conflict with an
upstream license, the upstream license prevails for its respective component.
